diff --git a/capsulflask/http_client.py b/capsulflask/http_client.py index 30b76a9..0f1d0ea 100644 --- a/capsulflask/http_client.py +++ b/capsulflask/http_client.py @@ -74,7 +74,7 @@ class MyHTTPClient: # append to tasks in the same order as online_hosts for host in online_hosts: tasks.append( - self.post_json(url=f"{host.url}/{url_suffix}", body=body, authorization_header=authorization_header) + self.post_json(url=f"{host.url}{url_suffix}", body=body, authorization_header=authorization_header) ) # gather is like Promise.all from javascript, it returns a future which resolves to an array of results # in the same order as the tasks that we passed in -- which were in the same order as online_hosts