Skip to content
Permalink
Browse files

[minor] style

  • Loading branch information...
jcrugzz committed May 11, 2014
1 parent 896ee7c commit ccad17795417de74bea2bcb6d6c559a4601af76d
Showing with 4 additions and 4 deletions.
  1. +4 −4 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'; }
}

//

0 comments on commit ccad177

Please sign in to comment.
You can’t perform that action at this time.