protocol-http1 0.14.2 → 0.14.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of protocol-http1 might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 171819639e9bdcb151af8717867993560979d13dff49f5536a657f4f8d8cc547
4
- data.tar.gz: 2fe527e411fd31580a4d9e8ce8136ab3809c38bef0d0829745b007dc7add3d54
3
+ metadata.gz: 41a5950eeaafb157d2d4e52b00eb3ea42f509b6c43514d3cf5c5449912ab940f
4
+ data.tar.gz: e8f2b0f46f39b8e332ee45a732aa186b24f9d83cdeec2bd13b2ac619081dbfa6
5
5
  SHA512:
6
- metadata.gz: eaabd0aa0040270f2d4e5f2129a36d7af5c5f9a3e4f367fdfff6e80a88eb5fe0d3ee0c6ca533a2a412a0e7583094b90a53b3dc723505ca471713a84a5cca4c4f
7
- data.tar.gz: ac5e286fde83bbdfbb78665d76da9c7ab90dd402f43946b9deab04f2fb7014c645f9ef26bdedfc782a2968d16457a15dcd006fb534c69aebdc699f53ed3621df
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)
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP1
25
- VERSION = "0.14.2"
25
+ VERSION = "0.14.3"
26
26
  end
27
27
  end
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.2
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: 2021-08-24 00:00:00.000000000 Z
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