[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:
parent
ca92afb39a
commit
1c523aa1be
|
@ -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_")])
|
||||
|
||||
|
|
Loading…
Reference in New Issue