diff options
| author | 2019-09-10 16:41:16 +0100 | |
|---|---|---|
| committer | 2019-09-10 16:41:16 +0100 | |
| commit | d75d33c42cbc9065462485e2d84c29382f6634dc (patch) | |
| tree | 478624639efed3f4fe9719e4baef2a020b644c08 /modules | |
| parent | get REST API port from settings if it's not in Host header (diff) | |
| signature | ||
"%s", not "%d", cuz `port` is a str
Diffstat (limited to 'modules')
| -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 23059c21..d649bb4d 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -84,7 +84,7 @@ class Handler(http.server.BaseHTTPRequestHandler): get_params_str = "" if get_params: get_params_str = "?%s" % urllib.parse.urlencode(get_params) - return "%s:%d/%s/%s%s" % (host, port, route, endpoint, + return "%s:%s/%s/%s%s" % (host, port, route, endpoint, get_params_str) else: return None |
