async-http 0.23.2 → 0.23.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/http/protocol/http11.rb +2 -2
- data/lib/async/http/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deadf37dcc1031b4d90620691dcbba62a5053dad924d8be2ac74f0066ccef5e2
|
4
|
+
data.tar.gz: d5ddc775312cdf35f8fd9d388d93eb02dc5e7134edb11e19ad43fbdced14c92e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72870ae703d379f1de5e2a025cc1096703b786e118306bb196aaca40a2bbb946609dfa6bc0ac9e1615620b1792ee86745db7fe0bcd3aa9a9906570198cf39dc6
|
7
|
+
data.tar.gz: 176290c981e692d4851e5959f1b73e74b6a84a5dc13d96852e32b516971fe05a57a5a2ca93ba197098eab832d45202b563278829f0b2f0d387712257e2d45ec8
|
@@ -220,9 +220,9 @@ module Async
|
|
220
220
|
end
|
221
221
|
|
222
222
|
def read_body(headers)
|
223
|
-
if headers
|
223
|
+
if headers.delete('transfer-encoding') == 'chunked'
|
224
224
|
return Body::Chunked.new(self)
|
225
|
-
elsif content_length = headers
|
225
|
+
elsif content_length = headers.delete('content-length')
|
226
226
|
return Body::Fixed.new(@stream, Integer(content_length))
|
227
227
|
end
|
228
228
|
end
|
data/lib/async/http/version.rb
CHANGED