This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/httpclient.rb b/lib/httpclient.rb | |
index 11a4da4..a250dfe 100644 | |
--- a/lib/httpclient.rb | |
+++ b/lib/httpclient.rb | |
@@ -777,22 +777,26 @@ private | |
def do_request_async(method, uri, query, body, extheader) | |
conn = Connection.new | |
t = Thread.new(conn) { |tconn| | |
- if HTTP::Message.file?(body) | |
- pos = body.pos rescue nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/httpclient.rb b/lib/httpclient.rb | |
index 11a4da4..475fa51 100644 | |
--- a/lib/httpclient.rb | |
+++ b/lib/httpclient.rb | |
@@ -317,6 +317,8 @@ class HTTPClient | |
# An array of response HTTP String (not a HTTP message body) which is used | |
# for loopback test. See test/* to see how to use it. | |
attr_proxy(:test_loopback_http_response) | |
+ # Decompress a compressed (with gzip or deflate) content body transparently. false by default. | |
+ attr_proxy(:transparent_gzip_decompression, true) |