This commit is contained in:
@@ -190,6 +190,7 @@ export default {
|
||||
return response;
|
||||
}
|
||||
let contentType = response.headers.get("content-type");
|
||||
|
||||
if (!contentType) {
|
||||
return response;
|
||||
}
|
||||
@@ -199,6 +200,10 @@ export default {
|
||||
if (contentType.includes("text/plain")) {
|
||||
return await response.text();
|
||||
}
|
||||
|
||||
if (contentType.includes("application/pdf")) {
|
||||
return await response.blob();
|
||||
}
|
||||
return response;
|
||||
},
|
||||
extractBody(response) {
|
||||
|
||||
Reference in New Issue
Block a user