use blob as fetch fallback (#1012)
This commit is contained in:
parent
df6ed7d5c0
commit
aee4d6b381
@ -74,7 +74,7 @@ async function fetchHandler(
|
||||
} else if (resMimeType.startsWith('text/')) {
|
||||
resBody = await res.text()
|
||||
} else {
|
||||
throw new Error('TODO: non-textual response body')
|
||||
resBody = await res.blob()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user