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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57206755197e6bd15038e9036eb5c6ab74a8942b6b00dae74d15eb999c7bf760
4
- data.tar.gz: a59c0f71558d7b1ee34b21485cebda98bd30aef71744e83efd1c321b37622389
3
+ metadata.gz: deadf37dcc1031b4d90620691dcbba62a5053dad924d8be2ac74f0066ccef5e2
4
+ data.tar.gz: d5ddc775312cdf35f8fd9d388d93eb02dc5e7134edb11e19ad43fbdced14c92e
5
5
  SHA512:
6
- metadata.gz: 4d5e76a534e11c8045540c691882d0c92014bbb208444bfd1dbf265867da06deb324c89d5e04bb5fc28f3e71415d9a821797ac6b3614e6ef4b8b48c9ae115754
7
- data.tar.gz: deea701332633244e625b516429ace7ac8892a86945facf3295aa6e81d4503de8db1136253f1cba3214cb4b5ff92b7ed47bf8318a4be5227fc977f25a02fc181
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['transfer-encoding'] == 'chunked'
223
+ if headers.delete('transfer-encoding') == 'chunked'
224
224
  return Body::Chunked.new(self)
225
- elsif content_length = headers['content-length']
225
+ elsif content_length = headers.delete('content-length')
226
226
  return Body::Fixed.new(@stream, Integer(content_length))
227
227
  end
228
228
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.23.2"
23
+ VERSION = "0.23.3"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.2
4
+ version: 0.23.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams