Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 08329d7

Browse files
committed
return blob instead of text if the document is not json
1 parent 20266b8 commit 08329d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/core/fetch/getResponseBody.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function getResponseBody(response: Response): Promise<any> {
66
if (isJSON) {
77
return await response.json();
88
} else {
9-
return await response.text();
9+
return await response.blob();
1010
}
1111
}
1212
} catch (error) {

0 commit comments

Comments
 (0)