From ea0a4ded803b30144e442344ad5a38a0d34bb3ba Mon Sep 17 00:00:00 2001 From: Jarrett Cruger Date: Wed, 17 Dec 2014 00:53:51 -0700 Subject: [PATCH] [fix] style spacing wtf --- lib/http-proxy/passes/web-incoming.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http-proxy/passes/web-incoming.js b/lib/http-proxy/passes/web-incoming.js index a2121e4..b74e61a 100644 --- a/lib/http-proxy/passes/web-incoming.js +++ b/lib/http-proxy/passes/web-incoming.js @@ -145,13 +145,13 @@ web_o = Object.keys(web_o).map(function(pass) { proxyReq.on('response', function(proxyRes) { if(server) { server.emit('proxyRes', proxyRes, req, res); } for(var i=0; i < web_o.length; i++) { - if(web_o[i](req, res, proxyRes, options)) { break; } + if(web_o[i](req, res, proxyRes, options)) { break; } } // Allow us to listen when the proxy has completed proxyRes.on('end', function () { - server.emit('end', req, res, proxyRes); - }) + server.emit('end', req, res, proxyRes); + }); proxyRes.pipe(res); });