mirror of
https://github.com/open-webui/oikb.git
synced 2026-10-19 07:13:34 +00:00
Co-authored-by: DantesVault <your@email.com> Co-authored-by: Tim Baek <tim@openwebui.com>
This commit is contained in:
parent
c23146a368
commit
c1133ee801
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue