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.
2 parents 7ac730d + 0b01bd3 commit dbb45a5Copy full SHA for dbb45a5
templates/react-native/src/client.ts.twig
@@ -432,7 +432,7 @@ class Client {
432
433
if (400 <= response.status) {
434
let responseText = '';
435
- if (response.headers.get('content-type')?.includes('application/json') || responseType === 'arrayBuffer') {
+ if (response.headers.get('content-type')?.includes('application/json')) {
436
responseText = JSON.stringify(data);
437
} else {
438
responseText = data?.message;
0 commit comments