diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-06 00:06:51 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-06 00:06:51 -0600 |
commit | 004317994057a974e36dab450f388005386bf209 (patch) | |
tree | a1ec58537152d28a783bcb349c151f4d1e336171 /packages/views | |
parent | 4ec2197deab2f7df1cb94a6506fac9127b3ae414 (diff) | |
parent | d4731a373ca665d4547eb0e89cdf270d41c44243 (diff) |
Merge branch 'archweb-generic'
# Conflicts:
# public/tests.py
# templates/base.html
Diffstat (limited to 'packages/views')
-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 f3d64548..6195e1f0 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}, |