Skip to content

Commit

Permalink
Adding base_headers to logout call in __exit__
Browse files Browse the repository at this point in the history
  • Loading branch information
bltravis committed Nov 27, 2024
1 parent 30bc94c commit 5b5e30a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion folioclient/FolioClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5b5e30a

Please sign in to comment.