From 7c70f362fbe68da3bd0b19697ee2eab248e0d810 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sat, 7 Sep 2024 19:23:06 +0000 Subject: [PATCH] fix: content-type --- src/api/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.ts b/src/api/api.ts index e92ce82..910b9c5 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -161,7 +161,7 @@ export class ApiHandler { } 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) {