"%s", not "%d", cuz port is a str

This commit is contained in:
jesopo 2019-09-10 16:41:16 +01:00
parent a02bfdf157
commit d75d33c42c

View file

@ -84,7 +84,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
get_params_str = "" get_params_str = ""
if get_params: if get_params:
get_params_str = "?%s" % urllib.parse.urlencode(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) get_params_str)
else: else:
return None return None