mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-10-23 06:55:45 +07:00
node_modules: update
This commit is contained in:
1 parent
67d71b1eee
commit
b43b7a6aba
13 files changed
+154
-23
No files matched your search
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user