Skip to content

Commit

Permalink
Fix API client: don't truncate query string
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed May 27, 2024
1 parent 54e06a7 commit 5a69869
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion covalent/_dispatcher_plugins/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5a69869

Please sign in to comment.