Browse Source

fix: shouldEncode

Adam 3 months ago
parent
commit
a9700c8773
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/opencode/src/file/index.ts

+ 1 - 1
packages/opencode/src/file/index.ts

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