fetchWorker: return response as ArrayBuffer
This commit is contained in:
parent
99964c4d0e
commit
86749cc285
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue