From 5a69869f1f8000eabbb8516eae9ecde71eb034c6 Mon Sep 17 00:00:00 2001 From: Casey Jao Date: Sun, 26 May 2024 20:20:47 -0400 Subject: [PATCH] Fix API client: don't truncate query string --- covalent/_dispatcher_plugins/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/covalent/_dispatcher_plugins/local.py b/covalent/_dispatcher_plugins/local.py index 3138873e5..de44719ec 100644 --- a/covalent/_dispatcher_plugins/local.py +++ b/covalent/_dispatcher_plugins/local.py @@ -671,8 +671,10 @@ def _put_asset(local_uri, remote_uri): host = f.host port = f.port dispatcher_addr = f"{scheme}://{host}:{port}" - endpoint = str(f.path) api_client = APIClient(dispatcher_addr) + endpoint = str(f.path) + if f.query: + endpoint += f"?{f.query}" r = api_client.put(endpoint, data=reader) r.raise_for_status()