Comparing version 16.0.3 to 16.0.4
@@ -131,4 +131,4 @@ "use strict"; | ||
if (this.time) { | ||
headers["x-response-time"] = `${ms(req.precise.stop().diff(), this.digit)}`; | ||
if (this.time && res.getHeader("x-response-time") === void 0) { | ||
res.header("x-response-time", `${ms(req.precise.stop().diff(), this.digit)}`); | ||
} | ||
@@ -234,2 +234,3 @@ | ||
res.header("content-type", "text/plain; charset=utf-8"); | ||
res.statusCode = status; | ||
res.send(output, status); | ||
@@ -236,0 +237,0 @@ } |
{ | ||
"name": "woodland", | ||
"version": "16.0.3", | ||
"version": "16.0.4", | ||
"description": "Lightweight HTTP router with automatic headers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
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
138948
683