diff options
author | Dan McGee <dan@archlinux.org> | 2015-04-15 17:23:18 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2015-04-15 17:23:18 -0500 |
commit | becb5b2356b384178002d9db6084547325ff7787 (patch) | |
tree | 46a26bd1ef3b20968aae5cd097cb5fcea8075a7e /packages | |
parent | 6897f44fa71e94726a71e7ec9e93dce1041835b7 (diff) |
Fix error in test where HTTP_HOST doesn't exist
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views/__init__.py b/packages/views/__init__.py index 6b44206a..7941a265 100644 --- a/packages/views/__init__.py +++ b/packages/views/__init__.py @@ -27,7 +27,7 @@ from .signoff import signoffs, signoff_package, signoff_options, signoffs_json @require_safe @cache_control(public=True, max_age=86400) def opensearch(request): - domain = "%s://%s" % (request.scheme, request.META['HTTP_HOST']) + domain = "%s://%s" % (request.scheme, request.META.get('HTTP_HOST')) return render(request, 'packages/opensearch.xml', {'domain': domain}, |