protocol-http 0.62.1 → 0.62.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http/body/stream.rb +4 -2
- data/lib/protocol/http/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 7001e45d0dbfe4930b402647f4f535fe005acb099b8b676be3e3688ebb53ab7e
|
|
4
|
+
data.tar.gz: a6cef93b8b627842ba8a7dd055e4c98ef4f883526259eddf09801c433ce7487a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16070db2e11451b34f6a07d67e60dd4586b1ee88982b76533efe8900803c697537c80cf63499c6bfaca990a3cf4c1fdddc3a06601a16a8dd555a07b56892900b
|
|
7
|
+
data.tar.gz: b2ae450a0a6e1dd59235735e6ccd0705d618cdd9027eb6f56bf25a28c065678e8b60a1cf9e2fbe8471faa373b7eab344b490819bed2d06ba73a189f9e43a32fc
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -52,9 +52,11 @@ module Protocol
|
|
|
52
52
|
# @parameter buffer [String] the buffer which will receive the data
|
|
53
53
|
# @returns [String] a buffer containing the data
|
|
54
54
|
def read(length = nil, buffer = nil)
|
|
55
|
-
|
|
55
|
+
if length == 0
|
|
56
|
+
return (buffer ? buffer.clear : String.new(encoding: Encoding::BINARY))
|
|
57
|
+
end
|
|
56
58
|
|
|
57
|
-
buffer ||= String.new
|
|
59
|
+
buffer ||= String.new(encoding: Encoding::BINARY)
|
|
58
60
|
|
|
59
61
|
# Take any previously buffered data and replace it into the given buffer.
|
|
60
62
|
if @buffer
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|