Fix 500 error with maxRequestCheckSize being undefined
This commit is contained in:
parent
5c96cd69b2
commit
d65b5f4e89
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -170,7 +170,7 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd,
|
||||||
}
|
}
|
||||||
|
|
||||||
var chunkBuffer = [];
|
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;
|
var chunkBufferPointer = 0;
|
||||||
|
|
||||||
function readableHandlerWhole() {
|
function readableHandlerWhole() {
|
||||||
|
|
Loading…
Reference in a new issue