excon 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/excon.gemspec +2 -2
- data/lib/excon/connection.rb +4 -4
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.18
|
data/excon.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{excon}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.18"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Wesley Beary"]
|
|
12
|
-
s.date = %q{2010-01-
|
|
12
|
+
s.date = %q{2010-01-11}
|
|
13
13
|
s.description = %q{speed, persistence, http(s)}
|
|
14
14
|
s.email = %q{wbeary@engineyard.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/excon/connection.rb
CHANGED
|
@@ -57,7 +57,10 @@ module Excon
|
|
|
57
57
|
params[:block]
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
if response.headers['
|
|
60
|
+
if response.headers['Connection'] == 'close'
|
|
61
|
+
block.call(socket.read)
|
|
62
|
+
reset_socket
|
|
63
|
+
elsif response.headers['Content-Length']
|
|
61
64
|
remaining = response.headers['Content-Length'].to_i
|
|
62
65
|
while remaining > 0
|
|
63
66
|
block.call(socket.read([CHUNK_SIZE, remaining].min))
|
|
@@ -73,9 +76,6 @@ module Excon
|
|
|
73
76
|
break
|
|
74
77
|
end
|
|
75
78
|
end
|
|
76
|
-
elsif response.headers['Connection'] == 'close'
|
|
77
|
-
block.call(socket.read)
|
|
78
|
-
reset_socket
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
rescue => socket_error
|
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.0.
|
|
4
|
+
version: 0.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wesley Beary
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-01-
|
|
12
|
+
date: 2010-01-11 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|