Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d285e4
)
Added a request variable for the HTTP method.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 14 Mar 2012 07:26:00 +0000
(08:26 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 14 Mar 2012 07:26:00 +0000
(08:26 +0100)
wrw/req.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/req.py
b/wrw/req.py
index
0d26964
..
90cfbaa
100644
(file)
--- 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"]