Comparing version 1.3.9 to 1.3.91
@@ -64,3 +64,3 @@ 'use strict' | ||
if (res.headers.location.indexOf('/') === 0) res.headers.location = (request.headers['x-forwarded-proto'] || 'http') + '://' + request.headers.host + '//http' + (scheme === 'http' ? '' : 's') + '://' + options.host + res.headers.location | ||
else if (/^https?:\/\//i.test(res.headers.location)) res.headers.location = (request.headers['x-forwarded-proto'] || 'http') + '://' + request.headers.host + '//' + res.headers.location.replace(/^\w+:\/\/[^/]+/, function (match) { return match.toLowerCase() }) | ||
else if (/^https?:\/\//i.test(res.headers.location)) res.headers.location = (request.headers['x-forwarded-proto'] || 'http') + '://' + request.headers.host + '//' + res.headers.location.replace(/^\w+:\/\/[^/]+/, function (match) { return match.replace(/:\d+$/, '').toLowerCase() }) | ||
response.writeHead(res.statusCode, res.headers) | ||
@@ -67,0 +67,0 @@ res.pipe(response, {end: true}) |
{ | ||
"name": "bfn-proxy", | ||
"version": "1.3.9", | ||
"version": "1.3.91", | ||
"description": "HTTP request proxy middleware for node.js", | ||
@@ -5,0 +5,0 @@ "author": "Blue Fidelity Inc. (https://www.bluefidelity.com/)", |
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
11537
134