protocol-http1 0.33.0 → 0.34.1

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: d5e39284335ca68719e14bdd3c85f2d9ca6c7fa28939f2625149dc85aa65d2e8
4
- data.tar.gz: f75598dfa2d6a89c1738c49bbfa76d627cb9badb2220254b4c82b489564f424a
3
+ metadata.gz: 71b9e3af2e930f52ebe6594fc1c81c7454328ab55a19b92c349b95d0d8343b6e
4
+ data.tar.gz: de119685170063e914f8648d84737b520134ca73a4268762b7d935fe45b07fa3
5
5
  SHA512:
6
- metadata.gz: 806650cfeeba0aced96ea8ca2d0694c6f5ddce0738b2b3f0493bc6fe70ccbd891981a3aa976cd4644e0622ca9351dd87f80ad997e9ef14794f7b7f2741bd9b98
7
- data.tar.gz: 2acf1dd39dbbb9f4f5a34a53135c4c828b6f697f4e32fd74fd02ee4494b06818f2253bb9286b1e6862ac2138e2e61f08fe353af5342792e7587ca5a348c01baa
6
+ metadata.gz: 6a0d9ecf4e542e88ff411495e92e3b9cc754b144429232e55acff51b73a5efa767387fa1a7fa299b8319385dab67a747406089bec7e3cb5ea8ab2345645ad20a
7
+ data.tar.gz: a1c881966df2abc55ba758445f5b17f8664f115ae37d9ff4e7fe8039f7a2a60bf095c7698281954f69b6b4aee99466abbdb13a6af32263ed63d14dc93562b05f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -43,7 +43,7 @@ module Protocol
43
43
  HEADER = /\A(#{FIELD_NAME}):#{OWS}(?:(#{FIELD_VALUE})#{OWS})?\z/.freeze
44
44
 
45
45
  VALID_FIELD_NAME = /\A#{FIELD_NAME}\z/.freeze
46
- VALID_FIELD_VALUE = /\A#{FIELD_VALUE}\z/.freeze
46
+ VALID_FIELD_VALUE = /\A#{FIELD_VALUE}?\z/.freeze
47
47
 
48
48
  DEFAULT_MAXIMUM_LINE_LENGTH = 8192
49
49
 
@@ -214,9 +214,11 @@ module Protocol
214
214
 
215
215
  # Close the read end of the connection and transition to the half-closed remote state (or closed if already in the half-closed local state).
216
216
  def close_read
217
- @persistent = false
218
- @stream&.close_read
219
- self.receive_end_stream!
217
+ unless @state == :closed
218
+ @persistent = false
219
+ @stream&.close_read
220
+ self.receive_end_stream!
221
+ end
220
222
  end
221
223
 
222
224
  # Close the connection and underlying stream and transition to the closed state.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP1
8
- VERSION = "0.33.0"
8
+ VERSION = "0.34.1"
9
9
  end
10
10
  end
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.33.0
4
+ version: 0.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -41,7 +41,7 @@ cert_chain:
41
41
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
42
42
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
43
43
  -----END CERTIFICATE-----
44
- date: 2025-03-20 00:00:00.000000000 Z
44
+ date: 1980-01-02 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: protocol-http
@@ -85,14 +85,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '3.1'
88
+ version: '3.2'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.6.2
95
+ rubygems_version: 3.6.7
96
96
  specification_version: 4
97
97
  summary: A low level implementation of the HTTP/1 protocol.
98
98
  test_files: []
metadata.gz.sig CHANGED
Binary file