[fix] yawnt baaaka .. fixes #8

This commit is contained in:
yawnt 2013-09-14 22:03:00 +02:00
parent ec981c5b74
commit 63b016c8ef

View File

@ -25,9 +25,11 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
function(e) { outgoing[e] = options[forward || 'target'][e]; }
);
['method', 'path', 'headers'].forEach(
['method', 'headers'].forEach(
function(e) { outgoing[e] = req[e]; }
);
outgoing.path = req.url;
return outgoing;
};
};