Skip to content

Commit

Permalink
Do not pass token as request param
Browse files Browse the repository at this point in the history
  • Loading branch information
jl-wynen committed Jan 19, 2024
1 parent ab7e7ab commit cef037d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/scitacean/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,11 +1003,9 @@ def _send_to_scicat(
) -> requests.Response:
if self._token is not None:
token = self._token.get_str()
params = {"access_token": token}
headers = {"Authorization": f"Bearer {token}"}
else:
token = ""
params = {}
headers = {}

if data is not None:
Expand All @@ -1020,7 +1018,6 @@ def _send_to_scicat(
data=data.model_dump_json(exclude_none=True)
if data is not None
else None,
params=params,
headers=headers,
timeout=self._timeout.seconds,
stream=False,
Expand Down

0 comments on commit cef037d

Please sign in to comment.