protocol-http1 0.35.2 → 0.36.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bf3ffc440b97d40277fdf64e1962d31edb93d808fc6a3059234af3b8be6e9c0
4
- data.tar.gz: 9495d1bf263831872363193cbe2dab89775c57d503eacbb74bd83dffe7863f8e
3
+ metadata.gz: 137f467965c9f6d92343158ba1b30189ee672fe8a971d3f30217b3e795ae94e7
4
+ data.tar.gz: 22626362ed6f0579303487ab839324dc4bf5e499f0af5dd5ee5103bd83d1d401
5
5
  SHA512:
6
- metadata.gz: 549410520376936764b4c55653bcc2bc30fd770fa63c3befeb634d6e909be02ce94dd8a11c0823a46a9de106fb6d3fce03eeacc03066e0a100aa797328641f80
7
- data.tar.gz: f0d72eb0d29c2e9d97fe725e53da409c5dbd0352df6575d44a27bab6a4d55fef929eb8a72adc0d484cb471479b383f425541881996c229f31ab2703b055ebb94
6
+ metadata.gz: 5f2a0846b2d60f1f6fbeaf9975010b6016dafd12d837b4357cfa0ba5d9bd05bbfac5b8ccc786b32cd3b181549f318e0d066fcea38cde3859d3ad7f85a62349ad
7
+ data.tar.gz: 13b18ef8bfff8bcbaca1c6031c65cf5612d8e75a1e86a3af23e572933b2b1c60290ece5bd82bac8103913142962baf21214abef8089daead1d66ce79115e30c5
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2025, by Samuel Williams.
4
+ # Copyright, 2019-2026, by Samuel Williams.
5
5
  # Copyright, 2023, by Thomas Morgan.
6
6
 
7
7
  require "protocol/http/body/readable"
@@ -137,7 +137,7 @@ module Protocol
137
137
  break if line.empty?
138
138
 
139
139
  if match = line.match(HEADER)
140
- @headers.add(match[1], match[2])
140
+ @headers.add(match[1], match[2], trailer: true)
141
141
  else
142
142
  raise BadHeader, "Could not parse header: #{line.inspect}"
143
143
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP1
8
- VERSION = "0.35.2"
8
+ VERSION = "0.36.0"
9
9
  end
10
10
  end
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2019-2025, by Samuel Williams.
3
+ Copyright, 2019-2026, by Samuel Williams.
4
4
  Copyright, 2019, by Brian Morearty.
5
5
  Copyright, 2020, by Olle Jonsson.
6
6
  Copyright, 2020, by Bruno Sutic.
data/readme.md CHANGED
@@ -9,7 +9,7 @@ Provides a low-level implementation of the HTTP/1 protocol.
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ``` ruby
12
- gem 'protocol-http1'
12
+ gem "protocol-http1"
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -30,6 +30,10 @@ Please see the [project documentation](https://socketry.github.io/protocol-http1
30
30
 
31
31
  Please see the [project releases](https://socketry.github.io/protocol-http1/releases/index) for all releases.
32
32
 
33
+ ### v0.36.0
34
+
35
+ - Indicate trailers from chunked body for better validation by `Protocol::HTTP::Headers`.
36
+
33
37
  ### v0.35.2
34
38
 
35
39
  - Tidy up implementation of `read_line?` to handle line length errors and protocol violations more clearly.
@@ -69,10 +73,6 @@ Please see the [project releases](https://socketry.github.io/protocol-http1/rele
69
73
 
70
74
  - Add block/yield interface to `read_request` and `read_response` methods.
71
75
 
72
- ### v0.28.1
73
-
74
- - Fix handling of `nil` lines in HTTP parsing.
75
-
76
76
  ## Contributing
77
77
 
78
78
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.36.0
4
+
5
+ - Indicate trailers from chunked body for better validation by `Protocol::HTTP::Headers`.
6
+
3
7
  ## v0.35.2
4
8
 
5
9
  - Tidy up implementation of `read_line?` to handle line length errors and protocol violations more clearly.
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- j���@u����\ �_�\����€���ً��� ]
2
- �Hd@�O��j-9U�*��i6����=1 ��[a>)�*B �.�'1�S��Y:�͡��aH�x��>�����x!����Q
3
- �O�~����?e�V��m��di��xD��z�b�ڛAE��
1
+ �G�=��_&f�qns$e}O4 ��X�n\S�.��(�� ��2]'��&6�W�Ҥ^�o���ۃ�p��]@Y�����H��#z����+���Z��Y�0/�����`h�Quwe�Gl���(bf"O���~��.�LfNB����<W=a��P�w�V��F�Bj�G����lu���3�pw����U�j,���>n����%'� �+�����N��z��\�S�HӠsh@��`�=0I��~��������&G�W�����U� ��L�񲶼�1��F*�\���#k�,�;us,�uJ�"P'vׂYˍPo*����� c�8쌠Y�uY@히\�A����h(.&�V}'Y�b��x�"��'��U�?N�
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.2
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -49,14 +49,14 @@ dependencies:
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '0.22'
52
+ version: '0.58'
53
53
  type: :runtime
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '0.22'
59
+ version: '0.58'
60
60
  executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.6.9
100
+ rubygems_version: 4.0.3
101
101
  specification_version: 4
102
102
  summary: A low level implementation of the HTTP/1 protocol.
103
103
  test_files: []
metadata.gz.sig CHANGED
Binary file