[FIX] web: correct /web/proxy/load to set correct base_url
authorChristophe Simonis <chs@odoo.com>
Wed, 20 Aug 2014 15:33:27 +0000 (17:33 +0200)
committerChristophe Simonis <chs@odoo.com>
Wed, 20 Aug 2014 15:33:27 +0000 (17:33 +0200)
addons/web/controllers/main.py

index 6dea47c..4889cdb 100644 (file)
@@ -850,7 +850,8 @@ class Proxy(http.Controller):
         from werkzeug.test import Client
         from werkzeug.wrappers import BaseResponse
 
-        return Client(request.httprequest.app, BaseResponse).get(path).data
+        base_url = request.httprequest.base_url
+        return Client(request.httprequest.app, BaseResponse).get(path, base_url=base_url).data
 
 class Database(http.Controller):