cubicweb/pyramid/bwcompat.py
changeset 11913 4516c3956d46
parent 11812 4e0829ade86f
child 11967 83739be20fab
--- a/cubicweb/pyramid/bwcompat.py	Fri Jan 20 16:53:28 2017 +0100
+++ b/cubicweb/pyramid/bwcompat.py	Mon Jan 23 11:02:21 2017 +0100
@@ -53,10 +53,6 @@
         CubicWebPublisher.core_handle do
         """
 
-        # XXX The main handler of CW forbid anonymous https connections
-        # I guess we can drop this "feature" but in doubt I leave this comment
-        # so we don't forget about it. (cdevienne)
-
         req = request.cw_request
         vreg = request.registry['cubicweb.registry']
 
@@ -170,10 +166,6 @@
         self.cwhandler = registry['cubicweb.handler']
 
     def __call__(self, request):
-        if request.path.startswith('/https/'):
-            request.environ['PATH_INFO'] = request.environ['PATH_INFO'][6:]
-            assert not request.path.startswith('/https/')
-            request.scheme = 'https'
         try:
             response = self.handler(request)
         except httpexceptions.HTTPNotFound: