diff --git a/api/js/jsapi/egw_json.js b/api/js/jsapi/egw_json.js index 020dab9626..f273b5b561 100644 --- a/api/js/jsapi/egw_json.js +++ b/api/js/jsapi/egw_json.js @@ -233,7 +233,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) { promise = (this.egw.window?this.egw.window:window).fetch(url, init) .then((response) => { - if (!response.ok || !response.headers.get('Content-Type').startsWith('application/json')) { + if (!response.ok) { throw response; } return response.json();