cubicweb/wsgi/request.py
changeset 11913 4516c3956d46
parent 11767 432f87a63057
child 12567 26744ad37953
--- a/cubicweb/wsgi/request.py	Fri Jan 20 16:53:28 2017 +0100
+++ b/cubicweb/wsgi/request.py	Mon Jan 23 11:02:21 2017 +0100
@@ -69,15 +69,10 @@
                           if k.startswith('HTTP_'))
         if 'CONTENT_TYPE' in environ:
             headers_in['Content-Type'] = environ['CONTENT_TYPE']
-        https = self.is_secure()
-        if self.path.startswith('/https/'):
-            self.path = self.path[6:]
-            self.environ['PATH_INFO'] = self.path
-            https = True
 
         post, files = self.get_posted_data()
 
-        super(CubicWebWsgiRequest, self).__init__(vreg, https, post,
+        super(CubicWebWsgiRequest, self).__init__(vreg, post,
                                                   headers= headers_in)
         self.content = environ['wsgi.input']
         if files is not None:
@@ -121,9 +116,6 @@
 
     ## wsgi request helpers ###################################################
 
-    def is_secure(self):
-        return self.environ['wsgi.url_scheme'] == 'https'
-
     def get_posted_data(self):
         # The WSGI spec says 'QUERY_STRING' may be absent.
         post = parse_qs(self.environ.get('QUERY_STRING', ''))