From 40131e7c3c4b2bbcaac8a55b110faae12f91ba41 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 14 Mar 2012 09:21:39 +0100 Subject: [PATCH] Always upper-case the request method. --- wrw/req.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/req.py b/wrw/req.py index 90cfbaa..1b86376 100644 --- a/wrw/req.py +++ b/wrw/req.py @@ -62,7 +62,7 @@ class request(object): class origrequest(request): def __init__(self, env): self.env = env - self.method = env["REQUEST_METHOD"] + self.method = env["REQUEST_METHOD"].upper() self.uriname = env["SCRIPT_NAME"] self.filename = env.get("SCRIPT_FILENAME") self.uri = env["REQUEST_URI"] -- 2.11.0