Comparing version 1.3.91 to 1.4.0
@@ -65,3 +65,3 @@ 'use strict' | ||
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) | ||
response.writeHead(res.statusCode === 308 ? 301 : res.statusCode, res.headers) | ||
res.pipe(response, {end: true}) | ||
@@ -68,0 +68,0 @@ } else { |
{ | ||
"name": "bfn-proxy", | ||
"version": "1.3.91", | ||
"version": "1.4.0", | ||
"description": "HTTP request proxy middleware for node.js", | ||
@@ -5,0 +5,0 @@ "author": "Blue Fidelity Inc. (https://www.bluefidelity.com/)", |
11567