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

feat: request gzip responses #1065

Merged
merged 1 commit into from Mar 14, 2018
Merged

feat: request gzip responses #1065

merged 1 commit into from Mar 14, 2018

Conversation

JustinBeckwith
Copy link
Contributor

Resolves #10

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 13, 2018
@@ -205,6 +209,8 @@ export function createAPIRequest<T>(
// to 10MB. Setting to 2GB by default.
// https://github.com/google/google-api-nodejs-client/issues/991
options.maxContentLength = options.maxContentLength || maxContentLength;
options.headers['Accept-Encoding'] = 'gzip';

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@@ -205,6 +209,8 @@ export function createAPIRequest<T>(
// to 10MB. Setting to 2GB by default.
// https://github.com/google/google-api-nodejs-client/issues/991
options.maxContentLength = options.maxContentLength || maxContentLength;
options.headers['Accept-Encoding'] = 'gzip';

This comment was marked as spam.

@JustinBeckwith JustinBeckwith merged commit e900d4c into googleapis:master Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants