Skip to content

Commit 3b0d689

Browse files
committed
[core] Replace post request body with array buffer
1 parent 9644eec commit 3b0d689

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ plugins.connectToAllDatabases().then(function() {
370370
}
371371

372372
const form = new formidable.IncomingForm(formidableOptions);
373-
req.body = '';
373+
req.body = [];
374374
req.on('data', (data) => {
375-
req.body += data;
375+
req.body.push(data);
376376
});
377377

378378
let multiFormData = false;
@@ -432,4 +432,4 @@ plugins.connectToAllDatabases().then(function() {
432432

433433
plugins.loadConfigs(common.db);
434434
}
435-
});
435+
});

0 commit comments

Comments
 (0)