http-protocol 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http/protocol/http1/connection.rb +3 -2
- data/lib/http/protocol/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb12e7a8d32427098f6c15718572cf392c024930750fb04eba1fd29d14d01880
|
4
|
+
data.tar.gz: 4b49a2a43e85066a4fef4cdcc28e9b1e66ad09fa882653ef8e28544b251b0e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c8834c64b4dffb5a85b35134cefe1a03c3b8f7fe179bc0e45b6ed12bc87ca22eddd9b34ea5f80e4454ed7374297b7495f51e0f47e61139e5d7b95340090b338
|
7
|
+
data.tar.gz: '0680483659424dd89bb13bb27fd8cd0200e5f621f5832198530262210b2f2a96adedde8fa22bec124bb74d0a687a67f2d0e09068f50fa3d93524a9ece6f92124'
|
@@ -258,7 +258,7 @@ module HTTP
|
|
258
258
|
end
|
259
259
|
end
|
260
260
|
|
261
|
-
@stream.
|
261
|
+
@stream.close_write
|
262
262
|
end
|
263
263
|
|
264
264
|
def write_body(body, chunked = true, head = false)
|
@@ -266,7 +266,8 @@ module HTTP
|
|
266
266
|
write_empty_body(body)
|
267
267
|
elsif length = body.length
|
268
268
|
write_fixed_length_body(body, length, head)
|
269
|
-
elsif chunked
|
269
|
+
elsif @persistent and chunked
|
270
|
+
# We specifically ensure that non-persistent connections do not use chunked response, so that hijacking works as expected.
|
270
271
|
write_chunked_body(body, head)
|
271
272
|
else
|
272
273
|
write_body_and_close(body, head)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-hpack
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.0.
|
146
|
+
rubygems_version: 3.0.3
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Provides abstractions to handle HTTP1 and HTTP2 protocols.
|