mirror of https://github.com/AlphaNecron/Void.git
fix(twilight): removed charset from mimetype
This commit is contained in:
parent
4bf9140cff
commit
7a4877a312
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue