No longer appends / to path if ignorePath is set

This commit is contained in:
Torstein Thune 2016-01-13 09:16:50 +01:00
parent 6371231086
commit f2093b5313

View File

@ -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);