Commit 7924c426 authored by Denis Bilenko's avatar Denis Bilenko

TestHttps: check that wsgi.url_scheme is https

parent 864e218d
......@@ -496,6 +496,7 @@ class HttpsTestCase(TestCase):
return urllib2.urlopen(req)
def application(self, environ, start_response):
assert environ['wsgi.url_scheme'] == 'https', environ['wsgi.url_scheme']
start_response('200 OK', [('Content-Type', 'text/plain')])
return [environ['wsgi.input'].read()]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment