mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fetchWorker: return response as ArrayBuffer
This commit is contained in:
parent
99964c4d0e
commit
86749cc285
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ export const FetchWorker = {
|
||||||
): Promise<[BodyInit, ResponseInit]> {
|
): Promise<[BodyInit, ResponseInit]> {
|
||||||
const response = await fetch(url, { ...init, signal });
|
const response = await fetch(url, { ...init, signal });
|
||||||
return [
|
return [
|
||||||
await response.text(),
|
await response.arrayBuffer(),
|
||||||
{
|
{
|
||||||
status: response.status,
|
status: response.status,
|
||||||
statusText: response.statusText,
|
statusText: response.statusText,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue