From: Fredrik Tolf Date: Wed, 18 Jul 2012 00:25:08 +0000 (+0200) Subject: Added SERVER_NAME as an immediate request variable. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=eacc5938f23818a348ee17f557484a706462c170;p=wrw.git Added SERVER_NAME as an immediate request variable. --- diff --git a/wrw/req.py b/wrw/req.py index 41c5f16..861454b 100644 --- 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.servername = env["SERVER_NAME"] self.https = "HTTPS" in env self.ihead = headdict() self.ohead = headdict()