Fix stickers that don't provide content type
This commit is contained in:
parent
cffd3c9f2e
commit
3de762d428
1 changed files with 3 additions and 1 deletions
|
@ -384,7 +384,9 @@ async function getMedia(mxc, init = {}) {
|
|||
},
|
||||
...init
|
||||
})
|
||||
assert(res.body)
|
||||
if (init.method !== "HEAD") {
|
||||
assert(res.body)
|
||||
}
|
||||
// @ts-ignore
|
||||
return res
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue