mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[minor] style
This commit is contained in:
parent
896ee7c9c3
commit
ccad177954
@ -52,9 +52,9 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
|
|||||||
//
|
//
|
||||||
if (!outgoing.agent) {
|
if (!outgoing.agent) {
|
||||||
outgoing.headers = outgoing.headers || {};
|
outgoing.headers = outgoing.headers || {};
|
||||||
if(typeof outgoing.headers.connection !== 'string' || outgoing.headers.connection.toLowerCase() !== 'upgrade') {
|
if (typeof outgoing.headers.connection !== 'string'
|
||||||
outgoing.headers.connection = 'close';
|
|| outgoing.headers.connection.toLowerCase() !== 'upgrade'
|
||||||
}
|
) { outgoing.headers.connection = 'close'; }
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user