use blob as fetch fallback ()

This commit is contained in:
Elijah 2023-05-11 14:19:09 -07:00 committed by GitHub
parent df6ed7d5c0
commit aee4d6b381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()
}
}