There was an error while loading. Please reload this page.
1 parent 59b4d3f commit 431e3fcCopy full SHA for 431e3fc
1 file changed
packages/zod/src/index.ts
@@ -1433,7 +1433,7 @@ const parseBodyAndResponse = ({
1433
const isMediaType =
1434
(pattern: string) =>
1435
([contentType]: [string, object]): boolean =>
1436
- new RegExp(pattern).test(contentType.split(';')[0].trim());
+ new RegExp(pattern).test(contentType.split(';')[0].trim().toLowerCase());
1437
1438
const getSingleResponse = (
1439
responses:
0 commit comments