pyramid_cubicweb/bwcompat.py
changeset 11505 eca6387f5b87
parent 11499 60a504740951
child 11511 13e0f569684c
--- a/pyramid_cubicweb/bwcompat.py	Tue Sep 02 20:49:57 2014 +0200
+++ b/pyramid_cubicweb/bwcompat.py	Tue Sep 02 20:50:33 2014 +0200
@@ -114,6 +114,10 @@
         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: