This commit is contained in:
@@ -155,7 +155,12 @@ export default {
|
||||
//no content, nothing to process
|
||||
return response;
|
||||
}
|
||||
return response.json();
|
||||
let contentType = response.headers.get("content-type");
|
||||
// console.log("gzapi::JSON method, content type is:", contentType);
|
||||
if (contentType && contentType.includes("json")) {
|
||||
return response.json();
|
||||
}
|
||||
return response;
|
||||
},
|
||||
apiErrorToHumanString(apiError) {
|
||||
//empty error object?
|
||||
|
||||
Reference in New Issue
Block a user