Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 7a4877a

Browse files
committed
fix(twilight): removed charset from mimetype
1 parent 4bf9140 commit 7a4877a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twilight/commands/upload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const upload = {
5959
slug,
6060
origFileName: fileName.split('/').pop(),
6161
fileName: `${rand}${ext}`,
62-
mimetype: getMimetype(res.headers.get('Content-Type'), ext),
62+
mimetype: getMimetype(res.headers.get('Content-Type').split(';').shift(), ext),
6363
userId: config.bot.default_uid,
6464
deletionToken
6565
}

0 commit comments

Comments
 (0)