[wsgi] remove ages old hack to set base_url
Its meaning has been lost in the mist of time.
--- a/wsgi/handler.py Fri Oct 11 18:00:34 2013 +0200
+++ b/wsgi/handler.py Fri Oct 11 18:02:48 2013 +0200
@@ -17,8 +17,6 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""WSGI request handler for cubicweb"""
-
-
__docformat__ = "restructuredtext en"
from itertools import chain, repeat, izip
@@ -92,7 +90,6 @@
return iter(self.body)
-
class CubicWebWSGIApplication(object):
"""This is the wsgi application which will be called by the
wsgi server with the WSGI ``environ`` and ``start_response``
@@ -108,8 +105,6 @@
def _render(self, req):
"""this function performs the actual rendering
"""
- if self.base_url is None:
- self.base_url = self.config._base_url = req.base_url()
try:
path = req.path
result = self.appli.handle_request(req, path)