Passing gzip compression as a client option

This commit is contained in:
Nilayan Bhattacharya committed 2017-11-29 12:45:11 -08:00
1 parent 86f6718ed1
commit 1a25d1ddeb
2 files changed
+9 -2

No files matched your search

+4 -1
View File
@@ -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