fix: shouldEncode

thinking-toggle-wip
Adam 2025-12-19 15:15:43 -06:00 committed by Aiden Cline
parent 1fcacfd889
commit 34d9c657e8
1 changed files with 1 additions and 1 deletions

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",