mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] closes #529
This commit is contained in:
parent
97e4600e94
commit
9e74a633a7
@ -1,4 +1,5 @@
|
||||
var common = exports,
|
||||
url = require('url'),
|
||||
extend = require('util')._extend;
|
||||
|
||||
/**
|
||||
@ -43,8 +44,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
|
||||
|
||||
|
||||
outgoing.agent = options.agent || false;
|
||||
outgoing.path = req.url;
|
||||
|
||||
outgoing.path = url.parse(req.url).path;
|
||||
return outgoing;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user