summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/url.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pyramid/url.py b/pyramid/url.py
index fd62f0057..812514638 100644
--- a/pyramid/url.py
+++ b/pyramid/url.py
@@ -98,8 +98,6 @@ class URLMethodsMixin(object):
port = '80'
if host is None:
host = e.get('HTTP_HOST')
- if host is None:
- host = e['SERVER_NAME']
if port is None:
if ':' in host:
host, port = host.split(':', 1)