excon 0.45.4 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

@@ -55,9 +55,14 @@ module GoodServer
55
55
 
56
56
  case encoding
57
57
  when 'gzip'
58
- io = (Zlib::GzipWriter.new(StringIO.new) << request[:body]).finish
59
- io.rewind
60
- body = io.read
58
+ body = request[:body]
59
+ if(body.nil? || body.empty?)
60
+ body = ''
61
+ else
62
+ io = (Zlib::GzipWriter.new(StringIO.new) << request[:body]).finish
63
+ io.rewind
64
+ body = io.read
65
+ end
61
66
  when 'deflate'
62
67
  # drops the zlib header
63
68
  deflator = Zlib::Deflate.new(nil, -Zlib::MAX_WBITS)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.4
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-07-13 00:00:00.000000000 Z
13
+ date: 2016-02-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -124,6 +124,20 @@ dependencies:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: sinatra-contrib
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
127
141
  - !ruby/object:Gem::Dependency
128
142
  name: json
129
143
  requirement: !ruby/object:Gem::Requirement
@@ -180,6 +194,7 @@ files:
180
194
  - lib/excon/extensions/uri.rb
181
195
  - lib/excon/headers.rb
182
196
  - lib/excon/middlewares/base.rb
197
+ - lib/excon/middlewares/capture_cookies.rb
183
198
  - lib/excon/middlewares/decompress.rb
184
199
  - lib/excon/middlewares/escape_path.rb
185
200
  - lib/excon/middlewares/expects.rb
@@ -207,6 +222,7 @@ files:
207
222
  - tests/errors_tests.rb
208
223
  - tests/header_tests.rb
209
224
  - tests/middlewares/canned_response_tests.rb
225
+ - tests/middlewares/capture_cookies_tests.rb
210
226
  - tests/middlewares/decompress_tests.rb
211
227
  - tests/middlewares/escape_path_tests.rb
212
228
  - tests/middlewares/idempotent_tests.rb
@@ -223,6 +239,7 @@ files:
223
239
  - tests/rackups/proxy.ru
224
240
  - tests/rackups/query_string.ru
225
241
  - tests/rackups/redirecting.ru
242
+ - tests/rackups/redirecting_with_cookie.ru
226
243
  - tests/rackups/request_headers.ru
227
244
  - tests/rackups/request_methods.ru
228
245
  - tests/rackups/response_header.ru
@@ -266,8 +283,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
283
  version: '0'
267
284
  requirements: []
268
285
  rubyforge_project: excon
269
- rubygems_version: 2.2.2
286
+ rubygems_version: 2.4.5.1
270
287
  signing_key:
271
288
  specification_version: 2
272
289
  summary: speed, persistence, http(s)
273
290
  test_files: []
291
+ has_rdoc: