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 b98353c commit c8be074Copy full SHA for c8be074
src/adapters/vanilla.ts
@@ -39,7 +39,8 @@ export async function requestFromVanilla(req: Request): Promise<OAuthRequest> {
39
const headers: Record<string, unknown> = Object.fromEntries(req.headers);
40
41
let body: Record<string, unknown> = {};
42
- const contentType = headers['content-type'];
+ const rawContentType = req.headers.get("content-type") || "";
43
+ const contentType = rawContentType.split(";")[0].trim();
44
45
if (req.body) {
46
if (contentType === "application/x-www-form-urlencoded") {
0 commit comments