diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-05 23:59:03 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-05 23:59:03 -0600 |
commit | d4731a373ca665d4547eb0e89cdf270d41c44243 (patch) | |
tree | 41dbfb57e5f6745ad6ac3acd5de8c4d9788c950c /packages/views | |
parent | c8d979b8a48805d162ab46cdc4e493da0aa1595c (diff) | |
parent | 803ba89841468bcf088ea79ea981a849ca159682 (diff) |
Merge branch 'archweb' into archweb-generic
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 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}, |