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 8f03783 commit 41baeb1Copy full SHA for 41baeb1
src/api/resources/proxy/client/Client.ts
@@ -23,10 +23,9 @@ export class Proxy {
23
24
/**
25
* Precompiled regex to check if an Accept header accepts JSON responses.
26
- * Matches: application/json, */*, or application/* (with or without parameters)
+ * Matches: application/json (with or without parameters)
27
*/
28
- private static readonly JSON_ACCEPT_REGEX =
29
- /(?:^|,|\s)(application\/json|\*\/\*|application\/\*)(?:\s*;|\s*,|\s*$)/i;
+ private static readonly JSON_ACCEPT_REGEX = /(?:^|,|\s)application\/json(?:\s*;|\s*,|\s*$)/i;
30
31
32
* Precompiled regex to check if a Content-Type header is JSON.
0 commit comments