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:
afd9325
)
Added SERVER_NAME as an immediate request variable.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 18 Jul 2012 00:25:08 +0000
(
02:25
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 18 Jul 2012 00:25:08 +0000
(
02:25
+0200)
wrw/req.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/req.py
b/wrw/req.py
index
41c5f16
..
861454b
100644
(file)
--- a/
wrw/req.py
+++ b/
wrw/req.py
@@
-70,6
+70,7
@@
class origrequest(request):
self.query = env["QUERY_STRING"]
self.remoteaddr = env["REMOTE_ADDR"]
self.serverport = env["SERVER_PORT"]
self.query = env["QUERY_STRING"]
self.remoteaddr = env["REMOTE_ADDR"]
self.serverport = env["SERVER_PORT"]
+ self.servername = env["SERVER_NAME"]
self.https = "HTTPS" in env
self.ihead = headdict()
self.ohead = headdict()
self.https = "HTTPS" in env
self.ihead = headdict()
self.ohead = headdict()