From 0c753234c0c85333f909bdbef034ffb6e192bad5 Mon Sep 17 00:00:00 2001 From: Emilien Kenler Date: Sat, 4 May 2013 22:48:50 +0200 Subject: [PATCH] Send path in req.path and not the url Signed-off-by: Emilien Kenler --- lib/node-http-proxy/http-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node-http-proxy/http-proxy.js b/lib/node-http-proxy/http-proxy.js index 0efb2fa3c..50eb88a46 100644 --- a/lib/node-http-proxy/http-proxy.js +++ b/lib/node-http-proxy/http-proxy.js @@ -228,7 +228,7 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) { outgoing.socketPath = this.target.socketPath; outgoing.agent = this.target.agent; outgoing.method = req.method; - outgoing.path = req.url; + outgoing.path = url.parse(req.url).path; outgoing.headers = req.headers; //