[wsgi] remove ages old hack to set base_url
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 11 Oct 2013 18:02:48 +0200
changeset 9289 9bb7b5dc4214
parent 9288 823cf14bcc37
child 9290 fcce1ff81561
[wsgi] remove ages old hack to set base_url Its meaning has been lost in the mist of time.
wsgi/handler.py
--- 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)