We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f00ea4 commit 3b6c06bCopy full SHA for 3b6c06b
src/helpers.ts
@@ -11,7 +11,7 @@ export const isCloudflareWorkers =
11
export const isDenoDeploy =
12
(globalThis as any).Deno?.env?.get('DENO_DEPLOYMENT_ID') !== undefined
13
14
-export function shouldCompress(res: Response, force: false) {
+export function shouldCompress(res: Response, force: boolean) {
15
const type = res.headers.get('Content-Type')
16
return type ? COMPRESSIBLE_CONTENT_TYPE_REGEX.test(type) : force
17
}
0 commit comments