async-http 0.53.0 → 0.53.1
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/http2/response.rb +5 -0
- 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: 0dd87a790df077e00e75dacd429d72c9c7d0efbe6aef48285acdd253ade705fb
|
4
|
+
data.tar.gz: 0c3404f38a7687d1fc45d35fd10d1e88c2a0bf00aebf33a662725022548d16d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/async/http/version.rb
CHANGED