We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d39e8 commit 6a1abd2Copy full SHA for 6a1abd2
lib/internal/mime.js
@@ -70,7 +70,7 @@ function parseTypeAndSubtype(str) {
70
const invalidSubtypeIndex = SafeStringPrototypeSearch(trimmedSubtype,
71
NOT_HTTP_TOKEN_CODE_POINT);
72
if (trimmedSubtype === '' || invalidSubtypeIndex !== -1) {
73
- throw new ERR_INVALID_MIME_SYNTAX('subtype', str, trimmedSubtype);
+ throw new ERR_INVALID_MIME_SYNTAX('subtype', str, invalidSubtypeIndex);
74
}
75
const subtype = toASCIILower(trimmedSubtype);
76
return [
0 commit comments