summaryrefslogtreecommitdiff
path: root/packages/views
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-10-02 20:43:56 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-10-02 20:43:56 -0400
commit355087ebe2e3fbd5f860e4655888a89d9df52e34 (patch)
treed01f6206a2f2d054d4d1931019f5ba2a248fe982 /packages/views
parentae785343076fd1fe8b89f69ca370f7fcd0cdcbd4 (diff)
parentea00a099dffd7157c93af54b5817734348d2bbc6 (diff)
Merge branch 'archweb-generic' into master-nomake
Conflicts: templates/public/download.html templates/public/feeds.html templates/public/index.html urls.py
Diffstat (limited to 'packages/views')
-rw-r--r--packages/views/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/views/__init__.py b/packages/views/__init__.py
index b6e72d62..1f8a0169 100644
--- a/packages/views/__init__.py
+++ b/packages/views/__init__.py
@@ -27,10 +27,7 @@ from .signoff import signoffs, signoff_package, signoff_options, signoffs_json
@require_safe
@cache_control(public=True, max_age=86400)
def opensearch(request):
- if request.is_secure():
- domain = "https://%s" % request.META['HTTP_HOST']
- else:
- domain = "http://%s" % request.META['HTTP_HOST']
+ domain = "%s://%s" % (request.scheme, request.META['HTTP_HOST'])
return render(request, 'packages/opensearch.xml',
{'domain': domain},