diff options
| author | Daniel Hahler <git@thequod.de> | 2014-07-05 20:19:36 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-05 20:19:17 -0400 |
| commit | 7f84f7fba7a2c967d7153644fbfaf62e4ed6dc5e (patch) | |
| tree | d796d9919c22ee98b480863b1dea31bbbc2f9c1e | |
| parent | 2f0cc4f5fbdddbecbd9c2093baf851fd92dbe205 (diff) | |
[1.7.x] Added a space before explanation of "Invalid HTTP_HOST header: ..."
Backport of fff7b507ef from master
| -rw-r--r-- | django/http/request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/request.py b/django/http/request.py index 1306dd3227..2897df7c11 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -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): |
