fix(twilight): removed charset from mimetype

This commit is contained in:
AlphaNecron 2021-10-08 16:55:50 +07:00
parent 4bf9140cff
commit 7a4877a312
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ const upload = {
slug,
origFileName: fileName.split('/').pop(),
fileName: `${rand}${ext}`,
mimetype: getMimetype(res.headers.get('Content-Type'), ext),
mimetype: getMimetype(res.headers.get('Content-Type').split(';').shift(), ext),
userId: config.bot.default_uid,
deletionToken
}