From 48d3b07a5a72f32d44c36ffba567227ae3bf2401 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 14 Mar 2012 08:26:00 +0100 Subject: [PATCH] Added a request variable for the HTTP method. --- wrw/req.py | 1 + 1 file changed, 1 insertion(+) 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"] -- 2.11.0