mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
[1.7.x] Added a space before explanation of "Invalid HTTP_HOST header: ..."
Backport of fff7b507ef from master
This commit is contained in:
parent
2f0cc4f5fb
commit
7f84f7fba7
@ -86,7 +86,7 @@ class HttpRequest(object):
|
|||||||
if domain:
|
if domain:
|
||||||
msg += " You may need to add %r to ALLOWED_HOSTS." % domain
|
msg += " You may need to add %r to ALLOWED_HOSTS." % domain
|
||||||
else:
|
else:
|
||||||
msg += "The domain name provided is not valid according to RFC 1034/1035"
|
msg += " The domain name provided is not valid according to RFC 1034/1035."
|
||||||
raise DisallowedHost(msg)
|
raise DisallowedHost(msg)
|
||||||
|
|
||||||
def get_full_path(self):
|
def get_full_path(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user