# HG changeset patch # User Pierre-Yves David # Date 1331829028 -3600 # Node ID 805a257709f6e7711636493e656da0c131c8a2df # Parent 8be58694f4166128575ad37a0afb36f7c201af0b [http] drop use-request-subdomain feature (closes #2251986) This feature do not have any user nowaday and lays in the path to WSGI. diff -r 8be58694f416 -r 805a257709f6 cwconfig.py --- a/cwconfig.py Fri Mar 16 10:29:15 2012 +0100 +++ b/cwconfig.py Thu Mar 15 17:30:28 2012 +0100 @@ -386,14 +386,6 @@ 'help': 'allow users to login with their primary email if set', 'group': 'main', 'level': 2, }), - ('use-request-subdomain', - {'type' : 'yn', - 'default': None, - 'help': ('if set, base-url subdomain is replaced by the request\'s ' - 'host, to help managing sites with several subdomains in a ' - 'single cubicweb instance'), - 'group': 'main', 'level': 1, - }), ('mangle-emails', {'type' : 'yn', 'default': False, diff -r 8be58694f416 -r 805a257709f6 etwist/server.py --- a/etwist/server.py Fri Mar 16 10:29:15 2012 +0100 +++ b/etwist/server.py Thu Mar 15 17:30:28 2012 +0100 @@ -165,9 +165,6 @@ else: https = False baseurl = self.base_url - if self.config['use-request-subdomain']: - baseurl = host_prefixed_baseurl(baseurl, host) - self.warning('used baseurl is %s for this request', baseurl) req = CubicWebTwistedRequestAdapter(request, self.appli.vreg, https, baseurl) if req.authmode == 'http': # activate realm-based auth