Kaydet (Commit) 7f84f7fb authored tarafından Daniel Hahler's avatar Daniel Hahler Kaydeden (comit) Tim Graham

[1.7.x] Added a space before explanation of "Invalid HTTP_HOST header: ..."

Backport of fff7b507 from master
üst 2f0cc4f5
......@@ -84,9 +84,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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment