[FIX] http: bind RouteMap using environ to allow correct redirections

(manual forward port of revid 3860 chs@openerp.com-20131023162646-9t8iu2okkddg56yi from web branch)

bzr revid: chs@openerp.com-20131030182400-bfuvl2209a7e1ifz
This commit is contained in:
Christophe Simonis 2013-10-30 19:24:00 +01:00
parent ca92afb39a
commit 1c523aa1be
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ class Root(object):
Tries to discover the controller handling the request for the path specified in the request.
"""
path = request.httprequest.path
urls = self.get_db_router(request.db).bind("")
urls = self.get_db_router(request.db).bind_to_environ(request.httprequest.environ)
func, arguments = urls.match(path)
arguments = dict([(k, v) for k, v in arguments.items() if not k.startswith("_ignored_")])