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 +4 -4
- data/lib/hyperion/aux/version.rb +1 -1
- data/lib/hyperion/headers.rb +2 -2
- data/spec/lib/hyperion_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 703f7193788110358cd78d9f7e6ae05582f5f162
|
4
|
+
data.tar.gz: b49182985aacb2b2f3d2807200b10c5873dfdffe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9c94fa7cefb90d8cbfb49e34e19ecc8129d64f79ef6321e5aedb1a894e07ebb3bf54da01e57cb19c0938de8ee5c332626cf6585aced7917a03b58d840fe90bb
|
7
|
+
data.tar.gz: 70229fff4a01fbedad1c924cab318e17e223a916a29cfd320b332514675b1783af99cbc64a1f33768a12c44a6970fe230aefbcbda9ca4772a231959b2dbdcc26
|
data/lib/hyperion/aux/version.rb
CHANGED
data/lib/hyperion/headers.rb
CHANGED
@@ -8,9 +8,9 @@ class Hyperion
|
|
8
8
|
headers = {}
|
9
9
|
rd = route.response_descriptor
|
10
10
|
pd = route.payload_descriptor
|
11
|
-
headers['Expect'] =
|
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
|
-
#
|
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
|
data/spec/lib/hyperion_spec.rb
CHANGED
@@ -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' =>
|
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' =>
|
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.
|
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-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|