Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit 8845be5

Browse files
committed
address comments
1 parent e2cd6e4 commit 8845be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/compression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class CompressionHook implements BeforeCreateRequestHook {
66
const hdrs = new Headers(input.options?.headers ?? {});
77
const body = input.options?.body;
88

9-
if (hdrs.get("content-type") !== "application/json" || typeof body !== "string") {
9+
if (!hdrs.get("content-type")?.toLowerCase().startsWith("application/json") || typeof body !== "string") {
1010
return input;
1111
}
1212

0 commit comments

Comments
 (0)