diff --git a/lib/caronte/common.js b/lib/caronte/common.js index 68f4a92..52b7767 100644 --- a/lib/caronte/common.js +++ b/lib/caronte/common.js @@ -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; -}; \ No newline at end of file +};