Skip to content

Commit c8fa5c0

Browse files
committed
fix: skip Bearer auth header when downloading pre-signed URLs to prevent 401 errors
1 parent ba8cc17 commit c8fa5c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def _download_file_from_onedrive_url(self, url, output_path, filename):
327327
"""
328328
Downloads a file from OneDrive using the provided download URL and saves it to the specified output path.
329329
"""
330-
with self.get_request(url, is_absolute_path=True, stream=True) as r:
330+
with self.get_raw(url, is_absolute_path=True, stream=True, ignore_auth=True) as r:
331331

332332
if r is None:
333333
self._handle_no_response(filename)

0 commit comments

Comments
 (0)