Skip to content

Commit

Permalink
Merge pull request #416 from MiLk/req-path
Browse files Browse the repository at this point in the history
Send path in req.path and not the url
  • Loading branch information
yawnt committed Dec 18, 2013
2 parents 611a1b1 + 0c75323 commit 3638938
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 3638938

Please sign in to comment.