fetchWorker: return response as ArrayBuffer

This commit is contained in:
Alex Gleason 2023-11-29 13:03:55 -06:00
parent 99964c4d0e
commit 86749cc285
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export const FetchWorker = {
): Promise<[BodyInit, ResponseInit]> {
const response = await fetch(url, { ...init, signal });
return [
await response.text(),
await response.arrayBuffer(),
{
status: response.status,
statusText: response.statusText,