Send path in req.path and not the url

Signed-off-by: Emilien Kenler <hello@emilienkenler.com>
This commit is contained in:
Emilien Kenler 2013-05-04 22:48:50 +02:00
parent de0928f616
commit 0c753234c0

View File

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