diff --git a/src/http-context.ts b/src/http-context.ts index 718475c..d42705e 100644 --- a/src/http-context.ts +++ b/src/http-context.ts @@ -48,7 +48,7 @@ export class HttpContext { } const { headers, header, url: rawUrl, method: m } = req.json(); - const method = m ?? 'GET'; + const method = m?.toUpperCase() ?? 'GET'; const url = new URL(rawUrl); const isAllowed = this.allowedHosts.some((allowedHost) => {