8000
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 cab7737 commit f79ac33Copy full SHA for f79ac33
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