protocol-http1 0.40.1 → 0.40.2

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: f9a61dc65b4fee0a9cca3509493160ae14b9b3268ae3134fb8e39ee8afe126df
4
- data.tar.gz: 3e04a81cdf3d40a6a95b2cdda1d44d32521d68885a48e35592b498ec61779551
3
+ metadata.gz: fff1a36300fb1ea0775689411e9b86a45093e6d064d10868c419e38422754bea
4
+ data.tar.gz: c5204b0d2f701c834685b84c405ae1a98da109ec8ccdaf0c6d4a99a04b489ccb
5
5
  SHA512:
6
- metadata.gz: bf4886e4fba31c3d001ee1edfbb6ca68390969153441a253e251d8f8ab116d28ff4b089adb82a6ec79a97465a0c190887d64dd025d090879f591ef8c90a73c3b
7
- data.tar.gz: 37eb313331d6f6af51eab12400118662fa408200456fbaa54cd9908c63b598e95f97304f559e72c4a0459239c06938e2e5261da6ff6a39a379920f844886a3cf
6
+ metadata.gz: 454ec4c8703447ad07cc199d482210d40b3abd79961b456eb1d0680869e35f87b72a0f0ba7bea5739178a40130007397b3d71fe9f467c83507628c2625e0cc98
7
+ data.tar.gz: f0c33d4fb8815e1f46e447ab5c693da0baaed0cf08e288d05030157b4bdaf6e792f306efbdaa3db21b80e1d1731d624647c4b3c13e5e5b308deac7b7bbf58346
checksums.yaml.gz.sig CHANGED
Binary file
@@ -128,7 +128,7 @@ module Protocol
128
128
  connection.close_read
129
129
  end
130
130
 
131
- raise EOFError, "Connection closed before expected length was read!"
131
+ raise
132
132
  end
133
133
 
134
134
  # @returns [String] a human-readable representation of the body.
@@ -149,7 +149,7 @@ module Protocol
149
149
 
150
150
  # Read the trailer from the connection, and add any headers to the trailer.
151
151
  def read_trailer
152
- while line = @connection.read_line?
152
+ while line = @connection.read_line
153
153
  # Empty line indicates end of trailer:
154
154
  break if line.empty?
155
155
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP1
8
- VERSION = "0.40.1"
8
+ VERSION = "0.40.2"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -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.40.2
34
+
35
+ - Handle unexpected EOF while reading chunked trailers.
36
+
33
37
  ### v0.40.1
34
38
 
35
39
  - Bound fixed-length and chunked body reads, and validate chunk terminators.
@@ -67,11 +71,6 @@ Please see the [project releases](https://socketry.github.io/protocol-http1/rele
67
71
 
68
72
  - Add traces provider for `Protocol::HTTP1::Connection`.
69
73
 
70
- ### v0.34.1
71
-
72
- - Fix connection state handling to allow idempotent response body closing.
73
- - Add `kisaten` fuzzing integration for improved security testing.
74
-
75
74
  ## Contributing
76
75
 
77
76
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.40.2
4
+
5
+ - Handle unexpected EOF while reading chunked trailers.
6
+
3
7
  ## v0.40.1
4
8
 
5
9
  - Bound fixed-length and chunked body reads, and validate chunk terminators.
data.tar.gz.sig CHANGED
Binary file
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.40.1
4
+ version: 0.40.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file