From 732e7b1d61f98869c2a99eae1baa4df4081eebbb Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 2 Feb 2024 05:42:22 -0500 Subject: [PATCH] Drop leading slash in api network requests --- Client/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/utils.py b/Client/utils.py index 0dc6d30..35924a5 100644 --- a/Client/utils.py +++ b/Client/utils.py @@ -244,7 +244,7 @@ def download_network(server, username, password, engine, net_name, net_sha, net_ # Format the API request, including credentials print ('Fetching %s (%s) for %s' % (net_name, net_sha, engine)) - endpoint = '/api/networks/%s/%s' % (engine, net_sha) + endpoint = 'api/networks/%s/%s' % (engine, net_sha) request = credentialed_request(server, username, password, endpoint) # Write the content out to the net_path in kb chunks