From f2093b5313c855cd6309cc0ddebb31f369e525ed Mon Sep 17 00:00:00 2001 From: Torstein Thune Date: Wed, 13 Jan 2016 09:16:50 +0100 Subject: [PATCH] No longer appends / to path if ignorePath is set --- lib/http-proxy/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http-proxy/common.js b/lib/http-proxy/common.js index 577f9b4..d143cf9 100644 --- a/lib/http-proxy/common.js +++ b/lib/http-proxy/common.js @@ -88,7 +88,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) { // path is. This can be labeled as FOOT-GUN material if you do not know what // you are doing and are using conflicting options. // - outgoingPath = !options.ignorePath ? outgoingPath : '/'; + outgoingPath = !options.ignorePath ? outgoingPath : ''; outgoing.path = common.urlJoin(targetPath, outgoingPath);