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

Commit 6d1c6fe

Browse files
committed
comment
1 parent 8845be5 commit 6d1c6fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hooks/compression.ts

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

9+
// We'll need to handle streaming requests differently (per message).
10+
// Currently we only handle unary JSON requests.
911
if (!hdrs.get("content-type")?.toLowerCase().startsWith("application/json") || typeof body !== "string") {
1012
return input;
1113
}

0 commit comments

Comments
 (0)