From: Fredrik Tolf Date: Wed, 14 Mar 2012 07:26:00 +0000 (+0100) Subject: Added a request variable for the HTTP method. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=48d3b07a5a72f32d44c36ffba567227ae3bf2401;p=wrw.git Added a request variable for the HTTP method. --- diff --git a/wrw/req.py b/wrw/req.py index 0d26964..90cfbaa 100644 --- a/wrw/req.py +++ b/wrw/req.py @@ -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"]