diff --git a/src/index.js b/src/index.js index 37d3242..009e565 100644 --- a/src/index.js +++ b/src/index.js @@ -446,7 +446,7 @@ module.exports = (req, res, logFacilities, config, next) => { }; //req.body - function readableHandlerPredict() { + const readableHandlerPredict = () => { try { if (req._readableState.buffer.head !== null) { requestBody = Buffer.from(req._readableState.buffer.head.data); @@ -457,7 +457,7 @@ module.exports = (req, res, logFacilities, config, next) => { } if (!requestBody) requestBody = Buffer.alloc(0); modSecurityCallback(); - } + }; let chunkBuffer = []; let chunkBufferLength = Math.min(