style: convert the readableHandlerPredict function to an arrow function
This commit is contained in:
parent
ca4558b8d5
commit
e4518b934c
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue