hyperion_http 0.1.2 → 0.1.3

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: fe93d63e5710f95bd417f7281c7c3b96c267e625
4
- data.tar.gz: 13daa226ae477357aacb51fa413f85f9967fed25
3
+ metadata.gz: 703f7193788110358cd78d9f7e6ae05582f5f162
4
+ data.tar.gz: b49182985aacb2b2f3d2807200b10c5873dfdffe
5
5
  SHA512:
6
- metadata.gz: 453822633702779a4fd790ef9527643865b42c8efb6ec3292dffa7cdb5e86457737062d106dfc978b3360c11aad670353f54f42b823858e9e26f4a6fbe0e760c
7
- data.tar.gz: c5c618b3a65d8090964c9f0d36aafb050c2f75c8758a8100c2e873bd9e619b54a37db34e35a31b962ce20e9f9597fb6304ad3944cdb4d6dda15af69aabc31188
6
+ metadata.gz: b9c94fa7cefb90d8cbfb49e34e19ecc8129d64f79ef6321e5aedb1a894e07ebb3bf54da01e57cb19c0938de8ee5c332626cf6585aced7917a03b58d840fe90bb
7
+ data.tar.gz: 70229fff4a01fbedad1c924cab318e17e223a916a29cfd320b332514675b1783af99cbc64a1f33768a12c44a6970fe230aefbcbda9ca4772a231959b2dbdcc26
@@ -1,3 +1,3 @@
1
1
  class Hyperion
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -8,9 +8,9 @@ class Hyperion
8
8
  headers = {}
9
9
  rd = route.response_descriptor
10
10
  pd = route.payload_descriptor
11
- headers['Expect'] = 'x' # this overrides default libcurl behavior.
11
+ headers['Expect'] = nil # this overrides default libcurl behavior.
12
12
  # see http://devblog.songkick.com/2012/11/27/a-second-here-a-second-there/
13
- # the value has to be non-empty or else it is ignored
13
+ # and http://stackoverflow.com/questions/17383089/libcurl-delays-for-1-second-before-uploading-data-command-line-curl-does-not
14
14
  if rd
15
15
  headers['Accept'] = "application/vnd.#{Hyperion.config.vendor_string}.#{short_mimetype(rd)}"
16
16
  end
@@ -19,7 +19,7 @@ describe Hyperion do
19
19
  'Accept' => "application/vnd.indigobio-ascent.#{rd.type}-v#{rd.version}+#{rd.format}",
20
20
  'Content-Type' => 'application/x-protobuf',
21
21
  'From' => 'dev@indigobio.com',
22
- 'Expect' => 'x'
22
+ 'Expect' => nil
23
23
  }
24
24
 
25
25
  expect(Hyperion::Typho).to receive(:request).
@@ -43,7 +43,7 @@ describe Hyperion do
43
43
  let!(:expected_headers){{
44
44
  'Accept' => "application/vnd.indigobio-ascent.#{rd.type}-v#{rd.version}+#{rd.format}",
45
45
  'Content-Type' => 'application/json',
46
- 'Expect' => 'x'
46
+ 'Expect' => nil
47
47
  }}
48
48
  it 'deserializes the response' do
49
49
  allow(Hyperion::Typho).to receive(:request).and_return(make_typho_response(200, '{"a":"b"}'))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperion_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indigo BioAutomation, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler