Skip to content

Commit ae88c5d

Browse files
authored
Merge pull request #112 from extism/uppercase-the-http-method
Uppercase the http method
2 parents b46fb76 + ea5ef55 commit ae88c5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/http-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class HttpContext {
4848
}
4949

5050
const { headers, header, url: rawUrl, method: m } = req.json();
51-
const method = m ?? 'GET';
51+
const method = m?.toUpperCase() ?? 'GET';
5252
const url = new URL(rawUrl);
5353

5454
const isAllowed = this.allowedHosts.some((allowedHost) => {

0 commit comments

Comments
 (0)