Skip to content

Commit

Permalink
Merge pull request #189 from SciCatProject/no-token-in-param
Browse files Browse the repository at this point in the history
Do not pass token as request param
  • Loading branch information
jl-wynen authored Jan 19, 2024
2 parents ab7e7ab + cef037d commit e26db2f
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 e26db2f

Please sign in to comment.