Skip to content

Commit f4e8746

Browse files
authored
allow redirects for has_database head request
The immediate response code is 308, not 200.
1 parent 2e968a6 commit f4e8746

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

terminusdb_client/client/Client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2886,6 +2886,7 @@ def has_database(self, dbid: str, team: Optional[str] = None) -> bool:
28862886
f"{self.api}/db/{team}/{dbid}",
28872887
headers=self._default_headers,
28882888
auth=self._auth(),
2889+
allow_redirects=True,
28892890
)
28902891
return r.status_code == 200
28912892

0 commit comments

Comments
 (0)