From 9e74a633a75d466cf266b1c57c68edd20a883f69 Mon Sep 17 00:00:00 2001 From: yawnt Date: Wed, 18 Dec 2013 12:45:20 +0100 Subject: [PATCH] [fix] closes #529 --- lib/http-proxy/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; };