From 48ae5d828c23d6f19c9e2dd8c922d88a09f5ed0f Mon Sep 17 00:00:00 2001 From: Jarrett Cruger Date: Tue, 25 Nov 2014 17:21:24 -0500 Subject: [PATCH] [minor] style consistency --- lib/http-proxy/passes/web-outgoing.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/http-proxy/passes/web-outgoing.js b/lib/http-proxy/passes/web-outgoing.js index 52e6c82..27b7940 100644 --- a/lib/http-proxy/passes/web-outgoing.js +++ b/lib/http-proxy/passes/web-outgoing.js @@ -1,6 +1,8 @@ -var url = require('url') -var passes = exports; +var url = require('url'), + passes = exports; + var redirectRegex = /^30(1|2|7|8)$/; + /*! * Array of passes. * @@ -21,7 +23,7 @@ var redirectRegex = /^30(1|2|7|8)$/; * @api private */ function removeChunked(req, res, proxyRes) { - if(req.httpVersion === '1.0') { + if (req.httpVersion === '1.0') { delete proxyRes.headers['transfer-encoding']; } },