Skip to content

Commit 305b7f2

Browse files
committed
Support text/json as a JSON mime type #1019
1 parent 9d2a899 commit 305b7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/mimeUtility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class MimeUtility {
6565
}
6666

6767
const { subtype, essence } = this.parse(contentTypeString);
68-
return essence === 'application/json' || subtype.endsWith('+json') || subtype.startsWith('x-amz-json');
68+
return essence === 'application/json' || essence === 'text/json' || subtype.endsWith('+json') || subtype.startsWith('x-amz-json');
6969
}
7070

7171
public static isXml(contentTypeString: string | undefined): boolean {

0 commit comments

Comments
 (0)