From 36768699a6503996b12eb97d59ead0b92e56c074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Sevestre?= Date: Fri, 22 Dec 2023 17:33:15 +0100 Subject: [PATCH] chore(headers): let overwrite headers --- lumapps/api/base_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lumapps/api/base_client.py b/lumapps/api/base_client.py index 08c57a61..466662a1 100644 --- a/lumapps/api/base_client.py +++ b/lumapps/api/base_client.py @@ -338,7 +338,7 @@ def _call(self, name_parts: Sequence[str], params: dict, json=None): path, params=params, json=json, - headers={**self._extra_http_headers, **self._headers}, + headers={**self._headers, **self._extra_http_headers}, ) if resp.status_code == 401 and self.token_getter: # Token expired, fetch new token and retry! @@ -348,7 +348,7 @@ def _call(self, name_parts: Sequence[str], params: dict, json=None): path, params=params, json=json, - headers={**self._extra_http_headers, **self._headers}, + headers={**self._headers, **self._extra_http_headers}, ) resp.raise_for_status() if not resp.content: