NOW MANAGED ON CODEBERG
Fixed response JSON detection when charset existed
Dan Brown0c880def5e99
diff --git a/resources/js/services/http.js b/resources/js/services/http.jsindex b05dd23bf..00865e69b 100644--- a/resources/js/services/http.js+++ b/resources/js/services/http.js@@ -149,8 +149,8 @@ async function getResponseContent(response) {return null;}- const responseContentType = response.headers.get('Content-Type');- const subType = responseContentType.split('/').pop();+ const responseContentType = response.headers.get('Content-Type') || '';+ const subType = responseContentType.split(';')[0].split('/').pop();if (subType === 'javascript' || subType === 'json') {return await response.json();