From 2dda7d73ab3ae2c9d18614798ef12e16910f937d Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 23 Aug 2024 21:27:36 +0200 Subject: [PATCH] Replaced responseEnd() function (which doesn't exist) with res.end() function for now --- src/middleware/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/middleware/core.js b/src/middleware/core.js index 0b1cf39..199be38 100644 --- a/src/middleware/core.js +++ b/src/middleware/core.js @@ -441,7 +441,8 @@ module.exports = (req, res, logFacilities, config, next) => { try { if (err) throw err; res.writeHead(errorCode, http.STATUS_CODES[errorCode], cheaders); - responseEnd( + //TODO: res.end -> responseEnd + res.end( data .toString() .replace(