Skip to content

Commit 63f7404

Browse files
committed
fix(browser): parse scim2 responses with non-standard json content-types
1 parent b7fac26 commit 63f7404

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/browser/src/FetchHttpClient.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class FetchHttpClient extends HttpClient {
100100
}
101101

102102
const contentType: string = fetchResponse.headers.get('content-type') ?? '';
103-
const responseData: T = contentType.includes('application/json')
103+
const responseData: T = /json/i.test(contentType)
104104
? await fetchResponse.json()
105105
: ((await fetchResponse.text()) as any);
106106

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ overrides:
9494
min-document: 2.19.1
9595
nuxt: 3.21.11
9696
nx>axios: 1.20.0
97+
nx>smol-toml: 1.7.1
9798
pbkdf2: 3.1.3
9899
prettier: 2.6.2
99100
qs: 6.16.0

0 commit comments

Comments
 (0)