From d75d33c42cbc9065462485e2d84c29382f6634dc Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 10 Sep 2019 16:41:16 +0100 Subject: [PATCH] "%s", not "%d", cuz `port` is a str --- 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 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