aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-10 16:41:16 +0100
committerGravatar jesopo2019-09-10 16:41:16 +0100
commitd75d33c42cbc9065462485e2d84c29382f6634dc (patch)
tree478624639efed3f4fe9719e4baef2a020b644c08 /modules/rest_api.py
parentget 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/rest_api.py')
-rw-r--r--modules/rest_api.py2
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