summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/http/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py
index baf9a11955..9a47e70592 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -48,8 +48,6 @@ class HttpRequest(object):
"Returns the HTTP host using the environment or request headers."
# We try three options, in order of decreasing preference.
host = self.META.get('HTTP_X_FORWARDED_HOST', '')
- if host:
- return host
if 'HTTP_HOST' in self.META:
host = self.META['HTTP_HOST']
else: