Fix stickers that don't provide content type
This commit is contained in:
+3
-1
@@ -384,7 +384,9 @@ async function getMedia(mxc, init = {}) {
|
|||||||
},
|
},
|
||||||
...init
|
...init
|
||||||
})
|
})
|
||||||
assert(res.body)
|
if (init.method !== "HEAD") {
|
||||||
|
assert(res.body)
|
||||||
|
}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user