From 9768312afa492786b31121d6aae0062489e32355 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 21 Oct 2023 20:05:32 +0100 Subject: [PATCH] chore(bench): optimize split param --- bench/dicer/parted-multipart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/dicer/parted-multipart.js b/bench/dicer/parted-multipart.js index 5436207..f214ff4 100644 --- a/bench/dicer/parted-multipart.js +++ b/bench/dicer/parted-multipart.js @@ -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);