We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b45d468 commit c30fb38Copy full SHA for c30fb38
src/utils/mimeUtility.ts
@@ -6,7 +6,7 @@ class MimeType {
6
public readonly charset?: string;
7
public constructor(type: string, subtype: string, charset?: string) {
8
this.type = type.toLowerCase();
9
- this.subtype = subtype.toLowerCase();
+ this.subtype = subtype?.toLowerCase() ?? '';
10
this.charset = charset;
11
}
12
0 commit comments