From f4e87462eaee90f138e346af95d5d664cf21bc82 Mon Sep 17 00:00:00 2001 From: Donny Winston Date: Wed, 31 May 2023 13:39:44 -0400 Subject: [PATCH] allow redirects for has_database head request The immediate response code is 308, not 200. --- terminusdb_client/client/Client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/terminusdb_client/client/Client.py b/terminusdb_client/client/Client.py index cbaa37b2..1a0f0092 100644 --- a/terminusdb_client/client/Client.py +++ b/terminusdb_client/client/Client.py @@ -2886,6 +2886,7 @@ def has_database(self, dbid: str, team: Optional[str] = None) -> bool: f"{self.api}/db/{team}/{dbid}", headers=self._default_headers, auth=self._auth(), + allow_redirects=True, ) return r.status_code == 200