mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Send path in req.path and not the url
Signed-off-by: Emilien Kenler <hello@emilienkenler.com>
This commit is contained in:
parent
de0928f616
commit
0c753234c0
@ -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;
|
||||
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user