mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: shouldEncode
This commit is contained in:
parent
26cf5e003e
commit
a9700c8773
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue