瀏覽代碼

fix: shouldEncode

Adam 10 月之前
父節點
當前提交
a9700c8773
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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> {
     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",