Skip to content

Commit 3b6c06b

Browse files
committed
fix: shouldCompress parameters
1 parent 6f00ea4 commit 3b6c06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const isCloudflareWorkers =
1111
export const isDenoDeploy =
1212
(globalThis as any).Deno?.env?.get('DENO_DEPLOYMENT_ID') !== undefined
1313

14-
export function shouldCompress(res: Response, force: false) {
14+
export function shouldCompress(res: Response, force: boolean) {
1515
const type = res.headers.get('Content-Type')
1616
return type ? COMPRESSIBLE_CONTENT_TYPE_REGEX.test(type) : force
1717
}

0 commit comments

Comments
 (0)