Skip to content

Commit

Permalink
fix: shouldCompress parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
vuolter committed Nov 18, 2024
1 parent 6f00ea4 commit 3b6c06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const isCloudflareWorkers =
export const isDenoDeploy =
(globalThis as any).Deno?.env?.get('DENO_DEPLOYMENT_ID') !== undefined

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

0 comments on commit 3b6c06b

Please sign in to comment.