Skip to content

Commit

Permalink
Send path in req.path and not the url
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Kenler <[email protected]>
  • Loading branch information
MiLk committed May 4, 2013
1 parent de0928f commit 0c75323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-http-proxy/http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

//
Expand Down

0 comments on commit 0c75323

Please sign in to comment.