mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 14:40:55 +03:00
use blob instead of stream to get file list. fixes #1084
This commit is contained in:
@@ -375,7 +375,8 @@ export async function getFileList(bearerToken) {
|
||||
const headers = new Headers({ Authorization: `Bearer ${bearerToken}` });
|
||||
const response = await fetch(getApiUrl('/api/filelist'), { headers });
|
||||
if (response.ok) {
|
||||
return response.body; // stream
|
||||
const encrypted = await response.blob();
|
||||
return encrypted;
|
||||
}
|
||||
throw new Error(response.status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user