From becb5b2356b384178002d9db6084547325ff7787 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 15 Apr 2015 17:23:18 -0500 Subject: Fix error in test where HTTP_HOST doesn't exist Signed-off-by: Dan McGee --- public/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/views.py') diff --git a/public/views.py b/public/views.py index 16f5db22..910b6c2d 100644 --- a/public/views.py +++ b/public/views.py @@ -25,7 +25,7 @@ def index(request): else: def updates(): return get_recent_updates() - domain = "%s://%s" % (request.scheme, request.META['HTTP_HOST']) + domain = "%s://%s" % (request.scheme, request.META.get('HTTP_HOST')) context = { 'news_updates': News.objects.order_by('-postdate', '-id')[:15], 'pkg_updates': updates, -- cgit v1.2.3