We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4b53b commit 0c03956Copy full SHA for 0c03956
1 file changed
src/App/src/utils/httpClient.ts
@@ -68,10 +68,6 @@ class HttpClient {
68
if (!response.ok) {
69
throw new Error(`${config.method || 'GET'} ${url} failed: ${response.statusText}`);
70
}
71
- const contentType = response.headers.get('content-type') || '';
72
- if (!contentType.includes('application/json')) {
73
- throw new Error(`${config.method || 'GET'} ${url} returned non-JSON response (${contentType})`);
74
- }
75
return response.json();
76
77
0 commit comments