async-http 0.53.0 → 0.53.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bc8de85da015e7e82aa4c9d5b74a8beb8eb7ad9703cb5e12ce26562afbf6536
4
- data.tar.gz: 1aed8b966a3c63de7b6b5504a99eb89599dcb54fd0f8879c7712425cb83eff96
3
+ metadata.gz: 0dd87a790df077e00e75dacd429d72c9c7d0efbe6aef48285acdd253ade705fb
4
+ data.tar.gz: 0c3404f38a7687d1fc45d35fd10d1e88c2a0bf00aebf33a662725022548d16d2
5
5
  SHA512:
6
- metadata.gz: 3b13c0d84ff2d98a361c08c9e0a853a0cc09d06e394375d9b4abb768328e308c0c1e02d8e964fa05e8d1169c6f0c844ad0f527ea298ba84acc16082d4eff2670
7
- data.tar.gz: 24b43624c98754808ced1e5721442a2f9e98b7edcae8a7fb0fd258ca83b962dbd4f368ae8c5addbee130e95bf76f14ac8cac6d16a52048bf47f5f87c6696cea6
6
+ metadata.gz: f2f6db17a7fe511f9b1a033a069f0805748f27db56f3ee7e719d5b26fcd36470a0998cc7dc39431a6e8d91861077787f0c42456479f1dd231bec637c74b55218
7
+ data.tar.gz: b57dfed936c2e97b1db58ada46fdd5fb155dcc5448546020dbf3bdda0ee2e7e8114533dd856162800435db165f8f505965764cd9916fbf33f02d86065a034d53
@@ -215,6 +215,11 @@ module Async
215
215
  if request.body.nil?
216
216
  @stream.send_headers(nil, headers, ::Protocol::HTTP2::END_STREAM)
217
217
  else
218
+ if length = request.body.length
219
+ # This puts it at the end of the pseudo-headers:
220
+ pseudo_headers << [CONTENT_LENGTH, length]
221
+ end
222
+
218
223
  # This function informs the headers object that any subsequent headers are going to be trailers. Therefore, it must be called *before* sending the headers, to avoid any race conditions.
219
224
  trailers = request.headers.trailers!
220
225
 
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module HTTP
25
- VERSION = "0.53.0"
25
+ VERSION = "0.53.1"
26
26
  end
27
27
  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.53.0
4
+ version: 0.53.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams