Skip to content

Commit d6a149b

Browse files
committed
common: use gzip content encoding when making http requests
1 parent 48a82a9 commit d6a149b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/common/src/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var googleAuth = require('google-auto-auth');
2929
var is = require('is');
3030
var request = require('request').defaults({
3131
timeout: 60000,
32+
gzip: true,
3233
pool: {
3334
maxSockets: Infinity
3435
}

packages/common/test/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ describe('common/util', function() {
9595
it('should have set correct defaults on Request', function() {
9696
assert.deepEqual(REQUEST_DEFAULT_CONF, {
9797
timeout: 60000,
98+
gzip: true,
9899
pool: {
99100
maxSockets: Infinity
100101
}

0 commit comments

Comments
 (0)