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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http1/body/chunked.rb +2 -2
- data/lib/protocol/http1/version.rb +1 -1
- data/license.md +1 -1
- data/readme.md +5 -5
- data/releases.md +4 -0
- data.tar.gz.sig +1 -3
- metadata +4 -4
- 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: 137f467965c9f6d92343158ba1b30189ee672fe8a971d3f30217b3e795ae94e7
|
|
4
|
+
data.tar.gz: 22626362ed6f0579303487ab839324dc4bf5e499f0af5dd5ee5103bd83d1d401
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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-
|
|
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
|
data/license.md
CHANGED
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
|
|
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
data.tar.gz.sig
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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:
|
|
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
|