diff --git a/src/index.js b/src/index.js index 4c0502d..55b920c 100644 --- a/src/index.js +++ b/src/index.js @@ -84,7 +84,7 @@ module.exports = function (req, res, logFacilities, config, next) { } writtenStatusCode = statusCode; res.setHeader("X-SVRJS-Cache", "MISS"); - if (headers) { + if (headers || typeof statusCodeDescription !== "object") { originalWriteHead( writtenStatusCode, statusCodeDescription,