From 44e918a974a5c02fdd9b84ddbbfd3224b200b9d9 Mon Sep 17 00:00:00 2001 From: forest Date: Mon, 4 Jan 2021 13:34:53 -0600 Subject: [PATCH] fix double slash --- capsulflask/http_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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