node_modules: update

This commit is contained in:
dawidd6 authored and github-actions[bot] committed 2026-10-22 19:47:05 +00:00
1 parent 67d71b1eee
commit b43b7a6aba
13 files changed
+154 -23

No files matched your search

+5 -2
View File
@@ -616,15 +616,18 @@ class MimeNode {
return;
}
switch (header.key) {
// The comments of a MIME header are not part of its value and are dropped, so a
// caller supplied 'boundary=b (comment)' is the boundary b it names, and the
// header goes out without the comment
case 'Content-Disposition':
structured = mimeFuncs.parseHeaderValue(value);
structured = mimeFuncs.parseHeaderValue(value, { stripComments: true });
if (this.filename) {
structured.params.filename = this.filename;
}
value = mimeFuncs.buildHeaderValue(structured);
break;
case 'Content-Type':
structured = mimeFuncs.parseHeaderValue(value);
structured = mimeFuncs.parseHeaderValue(value, { stripComments: true });
// the type token decides multipart and charset below, so clean it before
// those run and not just on the way out, otherwise a control char makes
// the checks miss and the header ends up claiming a type it is not set up for