Merge pull request #416 from MiLk/req-path

Send path in req.path and not the url
This commit is contained in:
yawnt 2013-12-18 03:49:59 -08:00
commit 36389384cb

View File

@ -228,7 +228,7 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
outgoing.socketPath = this.target.socketPath; outgoing.socketPath = this.target.socketPath;
outgoing.agent = this.target.agent; outgoing.agent = this.target.agent;
outgoing.method = req.method; outgoing.method = req.method;
outgoing.path = req.url; outgoing.path = url.parse(req.url).path;
outgoing.headers = req.headers; outgoing.headers = req.headers;
// //