mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #416 from MiLk/req-path
Send path in req.path and not the url
This commit is contained in:
commit
36389384cb
@ -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;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user