@bonniernews/local-esi
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -11,2 +11,6 @@ Changelog | ||
## [2.3.1] - 2023-03-22 | ||
- Fixed bad example in README | ||
## [2.3.0] - 2022-09-03 | ||
@@ -13,0 +17,0 @@ |
{ | ||
"name": "@bonniernews/local-esi", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Local Edge Side Includes parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -119,6 +119,11 @@ Local-ESI | ||
if (statusCode < 309 && statusCode > 300) { | ||
return res.redirect(response.statusCode, headers.location); | ||
return res.redirect(statusCode, headers.location); | ||
} | ||
res.status(statusCode || 200); | ||
if (statusCode) { | ||
res.status(statusCode); | ||
} else if (!res.statusCode) { | ||
res.status(200); | ||
} | ||
return res.send(body); | ||
@@ -125,0 +130,0 @@ }; |
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
56080
169