Fix 500 error with maxRequestCheckSize being undefined

This commit is contained in:
Dorian Niemiec 2024-02-14 13:53:10 +01:00
parent 5c96cd69b2
commit d65b5f4e89

View file

@ -170,7 +170,7 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd,
}
var chunkBuffer = [];
var chunkBufferLength = Math.min(parseInt(req.headers["content-length"]) - 1, maxRequestCheckSize);
var chunkBufferLength = Math.min(parseInt(req.headers["content-length"]) - 1, maxRequestCheckedSize);
var chunkBufferPointer = 0;
function readableHandlerWhole() {