async-http 0.50.5 → 0.50.6
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/request.rb +4 -1
- data/lib/async/http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 783c5bea153973dd5a5c01032f4f7b2ec8c838b48508d744bb89c7e77701af6b
|
4
|
+
data.tar.gz: 688ac155fd0851a35f90cad19235df4c23054d15be47868664aa8c2a26c418ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff34b8f8ecf007c017e20ea09f5a48564027db9c3f11880d315037ea3d861a82c18651c10c73d9c635595dd575ca21564c1d4679da1cf1dc0c6c78d6875a55f
|
7
|
+
data.tar.gz: 57ddc6912f594e35243a008782d35d705bd66fbe8f6505b45f28c63268e707f6f9a53f4c009f75bbe75282f690db87a006a8eacc3c49e85086002a6e6e312a9c
|
@@ -166,7 +166,7 @@ module Async
|
|
166
166
|
def send_response(response)
|
167
167
|
if response.nil?
|
168
168
|
@stream.send_headers(nil, NO_RESPONSE, ::Protocol::HTTP2::END_STREAM)
|
169
|
-
elsif response.body?
|
169
|
+
elsif response.body? && !self.head?
|
170
170
|
pseudo_headers = [
|
171
171
|
[STATUS, response.status],
|
172
172
|
]
|
@@ -192,6 +192,9 @@ module Async
|
|
192
192
|
], response.headers)
|
193
193
|
|
194
194
|
@stream.send_headers(nil, headers, ::Protocol::HTTP2::END_STREAM)
|
195
|
+
|
196
|
+
# If the response had a body but it was not sent, close it (e.g. HEAD request).
|
197
|
+
response.body&.close
|
195
198
|
end
|
196
199
|
end
|
197
200
|
end
|
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.50.
|
4
|
+
version: 0.50.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|