summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2015-04-15 17:23:18 -0500
committerDan McGee <dan@archlinux.org>2015-04-15 17:23:18 -0500
commitbecb5b2356b384178002d9db6084547325ff7787 (patch)
tree46a26bd1ef3b20968aae5cd097cb5fcea8075a7e /public
parent6897f44fa71e94726a71e7ec9e93dce1041835b7 (diff)
Fix error in test where HTTP_HOST doesn't exist
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'public')
-rw-r--r--public/views.py2
1 files changed, 1 insertions, 1 deletions
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,