http2 0.0.2 → 0.0.3
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.
- data/VERSION +1 -1
- data/http2.gemspec +1 -1
- data/lib/http2.rb +2 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.3
|
data/http2.gemspec
CHANGED
data/lib/http2.rb
CHANGED
|
@@ -335,7 +335,7 @@ class Http2
|
|
|
335
335
|
praw << "Content-Type: text/plain#{@nl}"
|
|
336
336
|
praw << @nl
|
|
337
337
|
|
|
338
|
-
if val.
|
|
338
|
+
if val.class.name.to_s == "StringIO"
|
|
339
339
|
praw << val.read
|
|
340
340
|
elsif val.is_a?(Hash) and val[:content]
|
|
341
341
|
praw << val[:content].to_s
|
|
@@ -475,6 +475,7 @@ class Http2
|
|
|
475
475
|
if @encoding == "gzip"
|
|
476
476
|
require "zlib"
|
|
477
477
|
require "iconv"
|
|
478
|
+
require "stringio"
|
|
478
479
|
io = StringIO.new(@resp.args[:body])
|
|
479
480
|
gz = Zlib::GzipReader.new(io)
|
|
480
481
|
untrusted_str = gz.read
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: http2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.0.
|
|
5
|
+
version: 0.0.3
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Kasper Johansen
|
|
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
107
107
|
requirements:
|
|
108
108
|
- - ">="
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
hash: -
|
|
110
|
+
hash: -2078940960128615639
|
|
111
111
|
segments:
|
|
112
112
|
- 0
|
|
113
113
|
version: "0"
|