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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7eaa0d9299bfac4824085a779deb8e2764bc650765cda32fba75285e16e76841
4
- data.tar.gz: 0e7c464e04570d7634ddd1aae9bc9a2d3757b76ca855779ab49abb045ebd7da4
3
+ metadata.gz: 7001e45d0dbfe4930b402647f4f535fe005acb099b8b676be3e3688ebb53ab7e
4
+ data.tar.gz: a6cef93b8b627842ba8a7dd055e4c98ef4f883526259eddf09801c433ce7487a
5
5
  SHA512:
6
- metadata.gz: 1865071baeceac8961adb366ba4b9148ccb07b730794a3a094980ad8134eac9b22b3ff0a1cc31cda148f6cfcebddfb039651b4db3dc2481dc341f627aacdeea1
7
- data.tar.gz: c09a5f5e8fbb8bad7f762c9140f87dcd304b980a907c97e648659579f6a9f6514dc4a52d09779512e5eab519b7e51165239443d225e7729b095109f9524e22ea
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
- return (buffer ? buffer.clear : String.new) if length == 0
55
+ if length == 0
56
+ return (buffer ? buffer.clear : String.new(encoding: Encoding::BINARY))
57
+ end
56
58
 
57
- buffer ||= String.new.force_encoding(Encoding::BINARY)
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
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.62.1"
8
+ VERSION = "0.62.2"
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-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.62.1
4
+ version: 0.62.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file