mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +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:
parent
cc1d4c06c5
commit
4e3eb6ed5f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user