mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] yawnt baaaka .. fixes #8
This commit is contained in:
parent
ec981c5b74
commit
63b016c8ef
@ -25,9 +25,11 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
|
|||||||
function(e) { outgoing[e] = options[forward || 'target'][e]; }
|
function(e) { outgoing[e] = options[forward || 'target'][e]; }
|
||||||
);
|
);
|
||||||
|
|
||||||
['method', 'path', 'headers'].forEach(
|
['method', 'headers'].forEach(
|
||||||
function(e) { outgoing[e] = req[e]; }
|
function(e) { outgoing[e] = req[e]; }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
outgoing.path = req.url;
|
||||||
|
|
||||||
return outgoing;
|
return outgoing;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user