Skip to content

Commit f2093b5

Browse files
committed
No longer appends / to path if ignorePath is set
1 parent 6371231 commit f2093b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/http-proxy/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
8888
// path is. This can be labeled as FOOT-GUN material if you do not know what
8989
// you are doing and are using conflicting options.
9090
//
91-
outgoingPath = !options.ignorePath ? outgoingPath : '/';
91+
outgoingPath = !options.ignorePath ? outgoingPath : '';
9292

9393
outgoing.path = common.urlJoin(targetPath, outgoingPath);
9494

0 commit comments

Comments
 (0)