Passing gzip compression as a client option
This commit is contained in:
1 parent
86f6718ed1
commit
1a25d1ddeb
2 files changed
+9
-2
No files matched your search
@@ -400,7 +400,10 @@ module Google
|
||||
def new_client
|
||||
client = ::HTTPClient.new
|
||||
|
||||
client.transparent_gzip_decompression = true
|
||||
if client_options.transparent_gzip_decompression
|
||||
client.transparent_gzip_decompression = client_options.transparent_gzip_decompression
|
||||
end
|
||||
|
||||
client.proxy = client_options.proxy_url if client_options.proxy_url
|
||||
|
||||
if client_options.open_timeout_sec
|
||||
|
||||
Reference in new issue
Block a user