Skip to content

Commit

Permalink
[minor] style
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed May 11, 2014
1 parent 896ee7c commit ccad177
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/http-proxy/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'; }
}

//
Expand Down

0 comments on commit ccad177

Please sign in to comment.