diff --git a/folioclient/FolioClient.py b/folioclient/FolioClient.py index 19d222c..74105b1 100644 --- a/folioclient/FolioClient.py +++ b/folioclient/FolioClient.py @@ -69,7 +69,9 @@ def __exit__(self, exc_type, exc_value, traceback): if self.cookies: logging.info("Logging out...") logout = httpx_client.post( - urljoin(self.okapi_url, "authn/logout"), cookies=self.cookies + urljoin(self.okapi_url, "authn/logout"), + headers=self.base_headers, + cookies=self.cookies, ) logout.raise_for_status() logging.info("Logged out")