We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc6115 commit abe7db1Copy full SHA for abe7db1
src/templates/core/fetch/getResponseBody.hbs
@@ -7,6 +7,8 @@ export const getResponseBody = async (response: Response): Promise<any> => {
7
const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type));
8
if (isJSON) {
9
return await response.json();
10
+ } else if (contentType.includes('application/pdf')) {
11
+ return await response.blob();
12
} else {
13
return await response.text();
14
}
0 commit comments