Skip to content

Commit ccad177

Browse files
committed
[minor] style
1 parent 896ee7c commit ccad177

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/http-proxy/common.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
5050
// Remark: If we are false and not upgrading, set the connection: close. This is the right thing to do
5151
// as node core doesn't handle this COMPLETELY properly yet.
5252
//
53-
if(!outgoing.agent) {
53+
if (!outgoing.agent) {
5454
outgoing.headers = outgoing.headers || {};
55-
if(typeof outgoing.headers.connection !== 'string' || outgoing.headers.connection.toLowerCase() !== 'upgrade') {
56-
outgoing.headers.connection = 'close';
57-
}
55+
if (typeof outgoing.headers.connection !== 'string'
56+
|| outgoing.headers.connection.toLowerCase() !== 'upgrade'
57+
) { outgoing.headers.connection = 'close'; }
5858
}
5959

6060
//

0 commit comments

Comments
 (0)