fix: shouldEncode

This commit is contained in:
Adam 2025-12-19 15:15:43 -06:00
parent 26cf5e003e
commit a9700c8773
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -73,6 +73,7 @@ export namespace File {
async function shouldEncode(file: BunFile): Promise<boolean> {
const type = file.type?.toLowerCase()
log.info("shouldEncode", { type })
if (!type) return false
if (type.startsWith("text/")) return false
@ -92,7 +93,6 @@ export namespace File {
"bzip",
"compressed",
"binary",
"stream",
"pdf",
"msword",
"powerpoint",