Co-authored-by: DantesVault <your@email.com>
Co-authored-by: Tim Baek <tim@openwebui.com>
This commit is contained in:
DRodriguez 2026-09-16 12:24:52 -07:00 • committed by GitHub
parent c23146a368
commit c1133ee801
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,7 +165,7 @@ class SharePointConnector(BaseConnector):
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