Skip to content

Commit

Permalink
No longer appends / to path if ignorePath is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Torthu committed Jan 13, 2016
1 parent 6371231 commit f2093b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/common.js
Expand Up @@ -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);

Expand Down

0 comments on commit f2093b5

Please sign in to comment.