etwist/server.py
changeset 8309 48ef505aa9f9
parent 8308 805a257709f6
child 8312 6c2119509fac
--- a/etwist/server.py	Thu Mar 15 17:30:28 2012 +0100
+++ b/etwist/server.py	Mon Feb 27 15:24:14 2012 +0100
@@ -157,15 +157,12 @@
         host = request.host
         # dual http/https access handling: expect a rewrite rule to prepend
         # 'https' to the path to detect https access
+        https = False
         if origpath.split('/', 2)[1] == 'https':
             origpath = origpath[6:]
             request.uri = request.uri[6:]
             https = True
-            baseurl = self.https_url or self.base_url
-        else:
-            https = False
-            baseurl = self.base_url
-        req = CubicWebTwistedRequestAdapter(request, self.appli.vreg, https, baseurl)
+        req = CubicWebTwistedRequestAdapter(request, self.appli.vreg, https)
         if req.authmode == 'http':
             # activate realm-based auth
             realm = self.config['realm']