fix double slash

This commit is contained in:
forest 2021-01-04 13:34:53 -06:00
parent 6764c5c97d
commit 44e918a974

View File

@ -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