Skip to content

Commit 0c75323

Browse files
committed
Send path in req.path and not the url
Signed-off-by: Emilien Kenler <[email protected]>
1 parent de0928f commit 0c75323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node-http-proxy/http-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
228228
outgoing.socketPath = this.target.socketPath;
229229
outgoing.agent = this.target.agent;
230230
outgoing.method = req.method;
231-
outgoing.path = req.url;
231+
outgoing.path = url.parse(req.url).path;
232232
outgoing.headers = req.headers;
233233

234234
//

0 commit comments

Comments
 (0)