From cef037d2c445172e01d370bdd8a6b77ed83c300d Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Fri, 19 Jan 2024 11:35:47 +0100 Subject: [PATCH] Do not pass token as request param --- src/scitacean/client.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/scitacean/client.py b/src/scitacean/client.py index ab2d4b92..a483fef4 100644 --- a/src/scitacean/client.py +++ b/src/scitacean/client.py @@ -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: @@ -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,