Added a request variable for the HTTP method.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 14 Mar 2012 07:26:00 +0000 (08:26 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 14 Mar 2012 07:26:00 +0000 (08:26 +0100)
wrw/req.py

index 0d26964..90cfbaa 100644 (file)
@@ -62,6 +62,7 @@ class request(object):
 class origrequest(request):
     def __init__(self, env):
         self.env = env
+        self.method = env["REQUEST_METHOD"]
         self.uriname = env["SCRIPT_NAME"]
         self.filename = env.get("SCRIPT_FILENAME")
         self.uri = env["REQUEST_URI"]