1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

removed accidentally check in change

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Christian Metts 2007-10-06 22:31:31 +00:00
parent cc1d4c06c5
commit 4e3eb6ed5f

View File

@ -48,8 +48,6 @@ class HttpRequest(object):
"Returns the HTTP host using the environment or request headers." "Returns the HTTP host using the environment or request headers."
# We try three options, in order of decreasing preference. # We try three options, in order of decreasing preference.
host = self.META.get('HTTP_X_FORWARDED_HOST', '') host = self.META.get('HTTP_X_FORWARDED_HOST', '')
if host:
return host
if 'HTTP_HOST' in self.META: if 'HTTP_HOST' in self.META:
host = self.META['HTTP_HOST'] host = self.META['HTTP_HOST']
else: else: