1 parent b7fac26 commit 63f7404Copy full SHA for 63f7404
2 files changed
packages/browser/src/FetchHttpClient.ts
@@ -100,7 +100,7 @@ export class FetchHttpClient extends HttpClient {
100
}
101
102
const contentType: string = fetchResponse.headers.get('content-type') ?? '';
103
- const responseData: T = contentType.includes('application/json')
+ const responseData: T = /json/i.test(contentType)
104
? await fetchResponse.json()
105
: ((await fetchResponse.text()) as any);
106
pnpm-workspace.yaml
@@ -94,6 +94,7 @@ overrides:
94
min-document: 2.19.1
95
nuxt: 3.21.11
96
nx>axios: 1.20.0
97
+ nx>smol-toml: 1.7.1
98
pbkdf2: 3.1.3
99
prettier: 2.6.2
qs: 6.16.0
0 commit comments