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 +4 -4
- data/lib/protocol/http1/connection.rb +4 -2
- data/lib/protocol/http1/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 915db5ce2d8ee347c4c99bc916c2c076fa180f5f8e2edb603943e3a7045790ea
|
|
4
|
+
data.tar.gz: f29ef818a88d01c2e5402e18dc381eb9a6c3878766c5196ac678be604cdb0575
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
108
|
+
return stream
|
|
107
109
|
end
|
|
108
110
|
|
|
109
111
|
# Close the connection and underlying stream.
|
|
110
112
|
def close
|
|
111
|
-
@stream
|
|
113
|
+
@stream&.close
|
|
112
114
|
end
|
|
113
115
|
|
|
114
116
|
def write_request(authority, method, path, version, headers)
|