Comparing version 16.0.2 to 16.0.3
@@ -218,4 +218,3 @@ "use strict"; | ||
if (res.headersSent === false) { | ||
const headers = {"content-type": "text/plain; charset=utf-8"}, | ||
numeric = isNaN(err.message) === false, | ||
const numeric = isNaN(err.message) === false, | ||
status = isNaN(res.statusCode) === false && res.statusCode >= 400 ? res.statusCode : numeric ? Number(err.message) : 500, | ||
@@ -234,3 +233,4 @@ output = numeric ? http.STATUS_CODES[status] : err.message; | ||
res.send(output, status, headers); | ||
res.header("content-type", "text/plain; charset=utf-8"); | ||
res.send(output, status); | ||
} | ||
@@ -237,0 +237,0 @@ |
{ | ||
"name": "woodland", | ||
"version": "16.0.2", | ||
"version": "16.0.3", | ||
"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
138419