mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
working on x-forwarded-for
This commit is contained in:
parent
133240937d
commit
31fc94aa5e
@ -163,10 +163,6 @@ RoutingProxy.prototype.close = function () {
|
||||
});
|
||||
};
|
||||
|
||||
function getProto(req) {
|
||||
return req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http');
|
||||
}
|
||||
|
||||
//
|
||||
// ### function proxyRequest (req, res, [port, host, paused])
|
||||
// #### @req {ServerRequest} Incoming HTTP Request to proxy.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user