File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ async function getResponseBody(response: Response): Promise<any> {
5
5
const isJSON = contentType.toLowerCase().startsWith('application/json');
6
6
const isBlob = contentType.toLowerCase().startsWith('image/')
7
7
|| contentType.toLowerCase().startsWith('application/pdf')
8
- || contentType.toLowerCase().startsWith('application/zip');
9
- if (isJSON) {
8
+ || contentType.toLowerCase().startsWith('application/zip')
9
+ || contentType.toLowerCase().startsWith('application/octet-stream'); if (isJSON) {
10
10
return await response.json();
11
11
} else if (isBlob) {
12
12
return await response.blob();
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ async function getResponseBody(response: Response): Promise<any> {
5
5
const isJSON = contentType.toLowerCase().startsWith('application/json');
6
6
const isBlob = contentType.toLowerCase().startsWith('image/')
7
7
|| contentType.toLowerCase().startsWith('application/pdf')
8
- || contentType.toLowerCase().startsWith('application/zip');
8
+ || contentType.toLowerCase().startsWith('application/zip')
9
+ || contentType.toLowerCase().startsWith('application/octet-stream');
9
10
if (isJSON) {
10
11
return await response.json();
11
12
} else if (isBlob) {
You can’t perform that action at this time.
0 commit comments