diff --git a/src/api/api.ts b/src/api/api.ts index a6ae2d0..e92ce82 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -144,7 +144,7 @@ export class ApiHandler { this.clearResetInterval(route); next(); if (result.length > 0) { - if (response.headers.get('content-type') === 'application/json') { + if (response.headers.get('content-type')?.includes('application/json')) { try { result = JSON.parse(result); } catch (err) {