1
0
Fork 0
forked from svrjs/svrjs

Replaced responseEnd() function (which doesn't exist) with res.end() function for now

This commit is contained in:
Dorian Niemiec 2024-08-23 21:27:36 +02:00
parent dd344ecca3
commit 2dda7d73ab

View file

@ -441,7 +441,8 @@ module.exports = (req, res, logFacilities, config, next) => {
try { try {
if (err) throw err; if (err) throw err;
res.writeHead(errorCode, http.STATUS_CODES[errorCode], cheaders); res.writeHead(errorCode, http.STATUS_CODES[errorCode], cheaders);
responseEnd( //TODO: res.end -> responseEnd
res.end(
data data
.toString() .toString()
.replace( .replace(