diff --git a/src/oikb/connectors/sharepoint.py b/src/oikb/connectors/sharepoint.py index 0463e86..ac6634f 100644 --- a/src/oikb/connectors/sharepoint.py +++ b/src/oikb/connectors/sharepoint.py @@ -165,7 +165,7 @@ def _walk_folder(self, folder_path: str, prefix: str, entries: list[ManifestEntr def read_file(self, path: str, filename: str) -> bytes: file_path = f"{path}/{filename}" if path else filename - resp = self._http.get(f"/drives/{self._drive_id}/root:/{quote(file_path)}:/content") + resp = self._http.get(f"/drives/{self._drive_id}/root:/{quote(file_path)}:/content", follow_redirects=True) resp.raise_for_status() return resp.content