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 8209e74 commit 8f8b090Copy full SHA for 8f8b090
packages/oidc-mock-provider/src/index.ts
@@ -148,7 +148,9 @@ export class OIDCMockProvider {
148
if (req.method === 'POST') {
149
// For simplicity, just merge POST parameters with GET parameters...
150
if (
151
- req.headers['content-type'] !== 'application/x-www-form-urlencoded'
+ !/^application\/x-www-form-urlencoded(;charset=utf-?8)?$/i.test(
152
+ req.headers['content-type'] ?? '',
153
+ )
154
) {
155
throw new Error(
156
'Only accepting application/x-www-form-urlencoded POST bodies',
0 commit comments