"%s", not "%d", cuz port
is a str
This commit is contained in:
parent
a02bfdf157
commit
d75d33c42c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue