Skip to content

Commit

Permalink
update accept-encoding header's value
Browse files Browse the repository at this point in the history
  • Loading branch information
zdying committed Oct 19, 2018
1 parent 5c03f6b commit d3b118d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flows/proxy/doRequest/request.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
var self = this;
// var execResult;

// proxyInfo.headers['accept-encoding'] = 'gzip,deflate';
// proxyInfo.headers['accept-encoding'] = 'gzip, deflate';
// if ('content-length' in proxyInfo.headers) {
// proxyInfo.headers['content-length'] = Buffer.byteLength(request.body || '');
// }
Expand Down
2 changes: 1 addition & 1 deletion src/rewrite/getProxyInfo.js
Expand Up @@ -113,7 +113,7 @@ module.exports = function getProxyInfo (request, hostsRules, rewriteRules) {
path = uri.path;
}

request.headers['accept-encoding'] = 'gzip,deflate';
request.headers['accept-encoding'] = 'gzip, deflate';
// TODO add test case.
// correct the `Content-Length` value.
if ('content-length' in request.headers) {
Expand Down

0 comments on commit d3b118d

Please sign in to comment.