twirp 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c112741e2caa5862500f4a8593d6d0aac78d26a
4
- data.tar.gz: 607d5e0dbd7af7ac89c8e029885845462aad2578
3
+ metadata.gz: 1465cef8ea8070380498d84e1678ef5edd495a6e
4
+ data.tar.gz: 97dda993421db600ef94146eede425f198f22145
5
5
  SHA512:
6
- metadata.gz: fb48c7b88bbf255a9fe8addd04918e2f9d13218a2352385d5c247797e6fb5440c008bdd89a64f346800bb16b17c7e5717ed463dbf0269dca5ce01bd8281b16e5
7
- data.tar.gz: a44529c441232b6987173600206c4a50a8f2c5d12381669b5f92ae63d4814a1d7406138df2e02c89b0587e0bf61399804ce8e4f4e69d17465908fb261f5cbfa7
6
+ metadata.gz: 206d4febd931eb71b6cbccf555bbd05edf53d74104a9bcec72676298c49b38a6c1cb390efeb489fd7271fc4504c76276d9f588fba6bada377e83a0d706a7837a
7
+ data.tar.gz: 230f965eeca4501b4618acc32cb7ccc89563831b9d70c621b5c05c88a4c180e86d0b98ee4fe7dca3805faa13583e72ca66d3666f761f49fa4d67e6ed25d14cf1
@@ -100,7 +100,6 @@ module Twirp
100
100
  conn.post do |r|
101
101
  r.url "#{service_full_name}/#{rpc_method}"
102
102
  r.headers['Content-Type'] = content_type
103
- r.headers['Accept'] = content_type
104
103
  r.body = body
105
104
  end
106
105
  end
@@ -1,3 +1,3 @@
1
1
  module Twirp
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -18,7 +18,6 @@ class ClientJSONTest < Minitest::Test
18
18
  def test_client_json_success
19
19
  c = Twirp::ClientJSON.new(conn_stub("/my.pkg.Talking/Blah") {|req|
20
20
  assert_equal "application/json", req.request_headers['Content-Type']
21
- assert_equal "application/json", req.request_headers['Accept']
22
21
  assert_equal '{"blah1":1,"blah2":2}', req.body # body is json
23
22
 
24
23
  [200, {}, '{"blah_resp": 3}']
@@ -87,7 +87,6 @@ class ClientTest < Minitest::Test
87
87
  def test_proto_serialized_request_body
88
88
  c = Example::HaberdasherClient.new(conn_stub("/example.Haberdasher/MakeHat") {|req|
89
89
  assert_equal "application/protobuf", req.request_headers['Content-Type']
90
- assert_equal "application/protobuf", req.request_headers['Accept']
91
90
 
92
91
  size = Example::Size.decode(req.body) # body is valid protobuf
93
92
  assert_equal 666, size.inches
@@ -189,7 +188,6 @@ class ClientTest < Minitest::Test
189
188
  def test_json_serialized_request_body_attrs
190
189
  c = Example::HaberdasherClient.new(conn_stub("/example.Haberdasher/MakeHat") {|req|
191
190
  assert_equal "application/json", req.request_headers['Content-Type']
192
- assert_equal "application/json", req.request_headers['Accept']
193
191
  assert_equal '{"inches":666}', req.body # body is valid json
194
192
  [200, jsonheader, '{}']
195
193
  }, content_type: "application/json")
@@ -202,7 +200,6 @@ class ClientTest < Minitest::Test
202
200
  def test_json_serialized_request_body_object
203
201
  c = Example::HaberdasherClient.new(conn_stub("/example.Haberdasher/MakeHat") {|req|
204
202
  assert_equal "application/json", req.request_headers['Content-Type']
205
- assert_equal "application/json", req.request_headers['Accept']
206
203
  assert_equal '{"inches":666}', req.body # body is valid json
207
204
  [200, jsonheader, '{}']
208
205
  }, content_type: "application/json")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twirp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyrus A. Forbes