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
|
...init
|
||||||
})
|
})
|
||||||
|
if (init.method !== "HEAD") {
|
||||||
assert(res.body)
|
assert(res.body)
|
||||||
|
}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue