--- a/etwist/server.py Fri May 23 12:26:52 2014 +0200
+++ b/etwist/server.py Fri May 23 18:12:47 2014 +0200
@@ -47,14 +47,6 @@
# to wait all tasks to be finished for the server to be actually started
lc.start(interval, now=False)
-def host_prefixed_baseurl(baseurl, host):
- scheme, netloc, url, query, fragment = urlsplit(baseurl)
- netloc_domain = '.' + '.'.join(netloc.split('.')[-2:])
- if host.endswith(netloc_domain):
- netloc = host
- baseurl = urlunsplit((scheme, netloc, url, query, fragment))
- return baseurl
-
class CubicWebRootResource(resource.Resource):
def __init__(self, config, repo):