protocol-http1 0.6.0 → 0.7.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: 750f0922f84bc1790af1f042ffe720f1c2d7ffd50b3492522d3ace0362447d96
4
- data.tar.gz: 5a4dc4316888e0ba157c4360c871945ea5f4533f86098486fbe0682865b9b2e8
3
+ metadata.gz: 915db5ce2d8ee347c4c99bc916c2c076fa180f5f8e2edb603943e3a7045790ea
4
+ data.tar.gz: f29ef818a88d01c2e5402e18dc381eb9a6c3878766c5196ac678be604cdb0575
5
5
  SHA512:
6
- metadata.gz: 3d347f96ce603c2721abe056862c07d2cca962735b150027177d1bca5fc1d869209f5840e55f241312c633c83c57a47c380e07cc4d815cba10224ecfcbf7962a
7
- data.tar.gz: 858cb2dae8d2e93e3150ef8361e247cf7dfe2bba43dcd52e2cf8917da3e211f779446decca233f101666a5e4188b4a31764df03c229ff86f902eb90e3ce185ca
6
+ metadata.gz: 5155a95528b70dcc66b7a9f9a978a1bf84b35944a738ae53afadc68edfff41e3c657e29a7e8be3b9921c60fee439846faa4b8e91eb09c8be3b881cb37e54ed6e
7
+ data.tar.gz: 625197558f27765c450e4389b7dae62cbe28d65ebf986745629b5c825de6888d4d1a13d9c204d04e331c491eb23ae850653c8024c1b0ed3ab05fe325b5d92403
@@ -100,15 +100,17 @@ module Protocol
100
100
  # @return [IO] the underlying non-blocking IO.
101
101
  def hijack!
102
102
  @persistent = false
103
+ stream = @stream
103
104
 
104
105
  @stream.flush
106
+ @stream = nil
105
107
 
106
- return @stream
108
+ return stream
107
109
  end
108
110
 
109
111
  # Close the connection and underlying stream.
110
112
  def close
111
- @stream.close
113
+ @stream&.close
112
114
  end
113
115
 
114
116
  def write_request(authority, method, path, version, headers)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HTTP1
23
- VERSION = "0.6.0"
23
+ VERSION = "0.7.0"
24
24
  end
25
25
  end
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.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams