From 4e3eb6ed5f9b7b74b47b33439dde7995e08d5933 Mon Sep 17 00:00:00 2001 From: Christian Metts Date: Sat, 6 Oct 2007 22:31:31 +0000 Subject: [PATCH] removed accidentally check in change git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6458 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/http/__init__.py | 2 -- 1 file changed, 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: