url_for was moved to _module._url_for

This commit is contained in:
jesopo 2019-09-16 14:58:10 +01:00
parent ea47c81ece
commit fa33a927b1

View file

@ -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):