Added SERVER_NAME as an immediate request variable.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 18 Jul 2012 00:25:08 +0000 (02:25 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 18 Jul 2012 00:25:08 +0000 (02:25 +0200)
wrw/req.py

index 41c5f16..861454b 100644 (file)
@@ -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()