forgot an await
This commit is contained in:
@@ -396,7 +396,7 @@ async function getMedia(mxc, init = {}) {
|
|||||||
...init
|
...init
|
||||||
})
|
})
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
throw mreq.makeMatrixServerError(res, init)
|
throw await mreq.makeMatrixServerError(res, init)
|
||||||
}
|
}
|
||||||
if (init.method !== "HEAD") {
|
if (init.method !== "HEAD") {
|
||||||
assert(res.body)
|
assert(res.body)
|
||||||
|
|||||||
Reference in New Issue
Block a user