mirror of
https://github.com/django/django.git
synced 2025-12-07 18:26:41 +00:00
Fixed E125 pep8 warnings
This commit is contained in:
parent
d1df395f3a
commit
7477a4ffde
38 changed files with 67 additions and 67 deletions
|
|
@ -66,7 +66,7 @@ class HttpRequest(object):
|
|||
"""Returns the HTTP host using the environment or request headers."""
|
||||
# We try three options, in order of decreasing preference.
|
||||
if settings.USE_X_FORWARDED_HOST and (
|
||||
'HTTP_X_FORWARDED_HOST' in self.META):
|
||||
'HTTP_X_FORWARDED_HOST' in self.META):
|
||||
host = self.META['HTTP_X_FORWARDED_HOST']
|
||||
elif 'HTTP_HOST' in self.META:
|
||||
host = self.META['HTTP_HOST']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue