mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
No longer appends / to path if ignorePath is set
This commit is contained in:
parent
6371231086
commit
f2093b5313
@ -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
|
// path is. This can be labeled as FOOT-GUN material if you do not know what
|
||||||
// you are doing and are using conflicting options.
|
// you are doing and are using conflicting options.
|
||||||
//
|
//
|
||||||
outgoingPath = !options.ignorePath ? outgoingPath : '/';
|
outgoingPath = !options.ignorePath ? outgoingPath : '';
|
||||||
|
|
||||||
outgoing.path = common.urlJoin(targetPath, outgoingPath);
|
outgoing.path = common.urlJoin(targetPath, outgoingPath);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user