diff options
| author | 2019-09-16 14:58:10 +0100 | |
|---|---|---|
| committer | 2019-09-16 15:05:14 +0100 | |
| commit | fa33a927b1e0e1f30eec4b1e4f29563725c9eac1 (patch) | |
| tree | 25458e3988cd0214042fb66e5a91dcac061771b6 /modules/rest_api.py | |
| parent | expose url-for logic on Exports too (diff) | |
| signature | ||
url_for was moved to _module._url_for
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
