From 31fc94aa5e43c54033d5384caaf104eebf3889bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ota=CC=81vio=20Ribeiro?= Date: Fri, 7 Dec 2012 09:30:09 -0200 Subject: [PATCH] working on x-forwarded-for --- lib/node-http-proxy/routing-proxy.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/node-http-proxy/routing-proxy.js b/lib/node-http-proxy/routing-proxy.js index 863fea3..62a8cbe 100644 --- a/lib/node-http-proxy/routing-proxy.js +++ b/lib/node-http-proxy/routing-proxy.js @@ -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.