There was an error while loading. Please reload this page.
1 parent eb0978f commit a998d35Copy full SHA for a998d35
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