Skip to content

Commit

Permalink
chore(bench): optimize split param (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 23, 2023
1 parent bcbd94c commit 7bd610d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/dicer/parted-multipart.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Parser.middleware = function(options) {

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

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

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

0 comments on commit 7bd610d

Please sign in to comment.