From 9238ce561bfd84cd7354a7124df58b338e7d0314 Mon Sep 17 00:00:00 2001 From: split Date: Thu, 21 Nov 2024 20:21:07 -0800 Subject: [PATCH] fix: :bug: fix upload --- src/translators/misskey.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/translators/misskey.ts b/src/translators/misskey.ts index 367c920..d97910a 100644 --- a/src/translators/misskey.ts +++ b/src/translators/misskey.ts @@ -30,7 +30,6 @@ export default translator({ { headers: { Authorization: `Bearer ${apiKey}`, - "Content-Type": "multipart/form-data", }, body: fd, method: "POST", @@ -38,7 +37,7 @@ export default translator({ ) if (!newFileRequest.ok) - console.error( + throw new Error( `misskey: creating new file, got ${newFileRequest.status}` )