From 7f84f7fba7a2c967d7153644fbfaf62e4ed6dc5e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 5 Jul 2014 20:19:36 +0200 Subject: [PATCH] [1.7.x] Added a space before explanation of "Invalid HTTP_HOST header: ..." Backport of fff7b507ef from master --- django/http/request.py | 4 ++-- 1 file 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):