Skip to content

Commit 7bd610d

Browse files
authoredOct 23, 2023
chore(bench): optimize split param (#133)
1 parent bcbd94c commit 7bd610d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bench/dicer/parted-multipart.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Parser.middleware = function(options) {
389389

390390
var type = req.headers['content-type'];
391391

392-
if (type) type = type.split(';')[0].trim().toLowerCase();
392+
if (type) type = type.split(';', 1)[0].trim().toLowerCase();
393393

394394
if (type === 'multipart/form-data') {
395395
Parser.handle(req, res, next, options);

0 commit comments

Comments
 (0)
Please sign in to comment.