From ccad17795417de74bea2bcb6d6c559a4601af76d Mon Sep 17 00:00:00 2001 From: Jarrett Cruger Date: Sun, 11 May 2014 01:02:35 -0400 Subject: [PATCH] [minor] style --- lib/http-proxy/common.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/http-proxy/common.js b/lib/http-proxy/common.js index d4186f0..5d10647 100644 --- a/lib/http-proxy/common.js +++ b/lib/http-proxy/common.js @@ -50,11 +50,11 @@ common.setupOutgoing = function(outgoing, options, req, forward) { // Remark: If we are false and not upgrading, set the connection: close. This is the right thing to do // as node core doesn't handle this COMPLETELY properly yet. // - if(!outgoing.agent) { + if (!outgoing.agent) { outgoing.headers = outgoing.headers || {}; - if(typeof outgoing.headers.connection !== 'string' || outgoing.headers.connection.toLowerCase() !== 'upgrade') { - outgoing.headers.connection = 'close'; - } + if (typeof outgoing.headers.connection !== 'string' + || outgoing.headers.connection.toLowerCase() !== 'upgrade' + ) { outgoing.headers.connection = 'close'; } } //