diff --git a/lib/http-proxy/common.js b/lib/http-proxy/common.js index 1698c1a..7897578 100644 --- a/lib/http-proxy/common.js +++ b/lib/http-proxy/common.js @@ -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; };