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; //