Added a space before explanation of "Invalid HTTP_HOST header: ..."

This commit is contained in:
Daniel Hahler 2014-07-05 20:19:36 +02:00 committed by Tim Graham
parent e0e8e1e383
commit fff7b507ef
1 changed files with 2 additions and 2 deletions

View File

@ -89,9 +89,9 @@ class HttpRequest(object):
else:
msg = "Invalid HTTP_HOST header: %r." % host
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:
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)
def get_full_path(self):