From eacc5938f23818a348ee17f557484a706462c170 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 18 Jul 2012 02:25:08 +0200 Subject: [PATCH] Added SERVER_NAME as an immediate request variable. --- wrw/req.py | 1 + 1 file changed, 1 insertion(+) 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() -- 2.11.0