cubicweb/pyramid/core.py
changeset 11913 4516c3956d46
parent 11824 d7ecf6dab085
child 11929 fcbd6b251d81
--- a/cubicweb/pyramid/core.py	Fri Jan 20 16:53:28 2017 +0100
+++ b/cubicweb/pyramid/core.py	Mon Jan 23 11:02:21 2017 +0100
@@ -126,12 +126,11 @@
         self.path = request.upath_info
 
         vreg = request.registry['cubicweb.registry']
-        https = request.scheme == 'https'
 
         post = request.params.mixed()
         headers_in = request.headers
 
-        super(CubicWebPyramidRequest, self).__init__(vreg, https, post,
+        super(CubicWebPyramidRequest, self).__init__(vreg, post,
                                                      headers=headers_in)
 
         self.content = request.body_file_seekable
@@ -157,9 +156,6 @@
             else:
                 self.form[param] = val
 
-    def is_secure(self):
-        return self._request.scheme == 'https'
-
     def relative_path(self, includeparams=True):
         path = self._request.path[1:]
         if includeparams and self._request.query_string: