camouflage-rewrite
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -98,3 +98,3 @@ 'use strict' | ||
Object.keys(res._headers).forEach(function (field) { | ||
res._headers[field] = res._headers[field].toString().split(options.url).join(requestOrigin) | ||
res.header(field, res._headers[field].toString().split(options.url).join(requestOrigin)) | ||
}) | ||
@@ -101,0 +101,0 @@ } |
{ | ||
"name": "camouflage-rewrite", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Express middleware to rewrite a request to a different URL and optional also replace it in the response content", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
15839
5