[http] drop use-request-subdomain feature (closes #2251986)
This feature do not have any user nowaday and lays in the path to WSGI.
--- 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,
--- 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