wsgi/handler.py
changeset 9289 9bb7b5dc4214
parent 9287 e70c8c70e344
child 9402 2c48c091b6a2
--- 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)