Skip to content

Commit 9e74a63

Browse files
committed
[fix] closes #529
1 parent 97e4600 commit 9e74a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/http-proxy/common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var common = exports,
2+
url = require('url'),
23
extend = require('util')._extend;
34

45
/**
@@ -43,8 +44,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
4344

4445

4546
outgoing.agent = options.agent || false;
46-
outgoing.path = req.url;
47-
47+
outgoing.path = url.parse(req.url).path;
4848
return outgoing;
4949
};
5050

0 commit comments

Comments
 (0)