http-proxy
Advanced tools
Comparing version 1.10.1 to 1.11.0
@@ -42,2 +42,3 @@ var http = require('http'), | ||
* prependPath: <true/false, Default: true - specify whether you want to prepend the target's path to the proxy path> | ||
* ignorePath: <true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request> | ||
* localAddress : <Local interface string to bind for outgoing connections> | ||
@@ -44,0 +45,0 @@ * changeOrigin: <true/false, Default: false - changes the origin of the host header to the target URL> |
@@ -86,2 +86,9 @@ var common = exports, | ||
// | ||
// Remark: ignorePath will just straight up ignore whatever the request's | ||
// 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 : '/'; | ||
outgoing.path = common.urlJoin(targetPath, outgoingPath); | ||
@@ -179,5 +186,3 @@ | ||
retSegs = [ | ||
args.filter(function filter(a) { | ||
return !!a; | ||
}).join('/').replace(/\/+/g, '/').replace(/:\//g, '://') | ||
args.filter(Boolean).join('/').replace(/\/+/g, '/').replace(/:\//g, '://') | ||
]; | ||
@@ -184,0 +189,0 @@ |
{ | ||
"name": "http-proxy", | ||
"version": "1.10.1", | ||
"version": "1.11.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38507
737