From fa33a927b1e0e1f30eec4b1e4f29563725c9eac1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 16 Sep 2019 14:58:10 +0100 Subject: [PATCH] url_for was moved to _module._url_for --- modules/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rest_api.py b/modules/rest_api.py index 9d86800f..076148f6 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -79,7 +79,7 @@ class Handler(http.server.BaseHTTPRequestHandler): return _bot.get_setting("rest-api-minify", False) def _url_for(self, headers): - return lambda route, endpoint, get_params={}: self.url_for( + return lambda route, endpoint, get_params={}: _module._url_for( route, endpoint, get_params, headers.get("Host", None)) def _handle(self, method, path, endpoint, args):