mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[minor] style consistency
This commit is contained in:
parent
95a588706b
commit
48ae5d828c
@ -1,6 +1,8 @@
|
|||||||
var url = require('url')
|
var url = require('url'),
|
||||||
var passes = exports;
|
passes = exports;
|
||||||
|
|
||||||
var redirectRegex = /^30(1|2|7|8)$/;
|
var redirectRegex = /^30(1|2|7|8)$/;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Array of passes.
|
* Array of passes.
|
||||||
*
|
*
|
||||||
@ -21,7 +23,7 @@ var redirectRegex = /^30(1|2|7|8)$/;
|
|||||||
* @api private
|
* @api private
|
||||||
*/
|
*/
|
||||||
function removeChunked(req, res, proxyRes) {
|
function removeChunked(req, res, proxyRes) {
|
||||||
if(req.httpVersion === '1.0') {
|
if (req.httpVersion === '1.0') {
|
||||||
delete proxyRes.headers['transfer-encoding'];
|
delete proxyRes.headers['transfer-encoding'];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user