protocol-http1 0.14.2 → 0.14.3
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http1/connection.rb +7 -0
- data/lib/protocol/http1/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41a5950eeaafb157d2d4e52b00eb3ea42f509b6c43514d3cf5c5449912ab940f
|
|
4
|
+
data.tar.gz: e8f2b0f46f39b8e332ee45a732aa186b24f9d83cdeec2bd13b2ac619081dbfa6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d46d17db36223ddc01cab220eb12780aa463a0a87e520b06b375248a4d79c74512e1c5fd2299bb30aa8479514657f8611508114954ef03b8edf867590d74bf2
|
|
7
|
+
data.tar.gz: a627ea0d0dfabe5759d1b87c575e5ab17eea367acc2b622155443cf28ba9bd7e9f4368a7d05fcc8ef58bcac9dcb80b06a4fb95de3d7189993fc00818ba37cb23
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -366,6 +366,13 @@ module Protocol
|
|
|
366
366
|
end
|
|
367
367
|
|
|
368
368
|
def write_body(version, body, head = false, trailer = nil)
|
|
369
|
+
# HTTP/1.0 cannot in any case handle trailers.
|
|
370
|
+
if version == HTTP10 # or te: trailers was not present (strictly speaking not required.)
|
|
371
|
+
trailer = nil
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# While writing the body, we don't know if trailers will be added. We must choose a different body format depending on whether there is the chance of trailers, even if trailer.any? is currently false.
|
|
375
|
+
|
|
369
376
|
if body.nil?
|
|
370
377
|
write_connection_header(version)
|
|
371
378
|
write_empty_body(body)
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: protocol-http1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
|
+
- Brian Morearty
|
|
9
|
+
- Bruno Sutic
|
|
10
|
+
- Olle Jonsson
|
|
8
11
|
autorequire:
|
|
9
12
|
bindir: bin
|
|
10
13
|
cert_chain:
|
|
@@ -36,7 +39,7 @@ cert_chain:
|
|
|
36
39
|
RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
|
|
37
40
|
HiLJ8VOFx6w=
|
|
38
41
|
-----END CERTIFICATE-----
|
|
39
|
-
date:
|
|
42
|
+
date: 2022-05-01 00:00:00.000000000 Z
|
|
40
43
|
dependencies:
|
|
41
44
|
- !ruby/object:Gem::Dependency
|
|
42
45
|
name: protocol-http
|
metadata.gz.sig
CHANGED
|
Binary file
|