Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gzip encoding on Request #7425

Merged
merged 1 commit into from May 9, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Diff settings

Always

Just for now

Support gzip encoding on Request

  • Loading branch information...
ykzts committed May 9, 2018
commit 4de98db0312de2a45d8f08d6f6611ebc64eed8b1
@@ -51,7 +51,7 @@ def perform
end

def headers
(@account ? @headers.merge('Signature' => signature) : @headers).without(REQUEST_TARGET)
(@account ? @headers.merge('Signature' => signature) : @headers).reverse_merge('Accept-Encoding' => 'gzip').without(REQUEST_TARGET)
end

private
@@ -100,7 +100,7 @@ def timeout
end

def http_client
@http_client ||= HTTP.timeout(:per_operation, timeout).follow(max_hops: 2)
@http_client ||= HTTP.use(:auto_inflate).timeout(:per_operation, timeout).follow(max_hops: 2)
end

def use_proxy?
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.