diff options
Diffstat (limited to 'django/contrib/sitemaps/tests/https.py')
| -rw-r--r-- | django/contrib/sitemaps/tests/https.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/django/contrib/sitemaps/tests/https.py b/django/contrib/sitemaps/tests/https.py index b590bf2215..d4f9053fc8 100644 --- a/django/contrib/sitemaps/tests/https.py +++ b/django/contrib/sitemaps/tests/https.py @@ -26,7 +26,8 @@ class HTTPSSitemapTests(SitemapTestsBase): </urlset> """ % (self.base_url, date.today())) -#@override_settings(SECURE_PROXY_SSL_HEADER=False) + +@override_settings(SECURE_PROXY_SSL_HEADER=False) class HTTPSDetectionSitemapTests(SitemapTestsBase): extra = {'wsgi.url_scheme': 'https'} @@ -47,5 +48,3 @@ class HTTPSDetectionSitemapTests(SitemapTestsBase): <url><loc>%s/location/</loc><lastmod>%s</lastmod><changefreq>never</changefreq><priority>0.5</priority></url> </urlset> """ % (self.base_url.replace('http://', 'https://'), date.today())) - -HTTPSDetectionSitemapTests = override_settings(SECURE_PROXY_SSL_HEADER=False)(HTTPSDetectionSitemapTests) |
