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}` )