excon 0.0.23 → 0.0.24
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.
- data/excon.gemspec +1 -1
- data/lib/excon.rb +1 -1
- data/lib/excon/response.rb +1 -1
- metadata +2 -2
data/excon.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'excon'
|
16
|
-
s.version = '0.0.
|
16
|
+
s.version = '0.0.24'
|
17
17
|
s.date = '2010-05-10'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
data/lib/excon.rb
CHANGED
data/lib/excon/response.rb
CHANGED
@@ -23,7 +23,7 @@ module Excon
|
|
23
23
|
unless params[:method] == 'HEAD'
|
24
24
|
if !block || (params[:expects] && ![*params[:expects]].include?(response.status))
|
25
25
|
response.body = ''
|
26
|
-
lambda { |chunk| response.body << chunk }
|
26
|
+
block = lambda { |chunk| response.body << chunk }
|
27
27
|
end
|
28
28
|
|
29
29
|
if response.headers['Connection'] == 'close'
|