-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix prepare_single_hop_path_and_storage_options (#7068)
* Transform all HF HTTP URLs to HF protocol * Fix test URL * Remove HF headers for non-HF HTTP URLs * Fix for HTTP storage_options without 'headers' * Remove unused cookies * Refactor * Refactor list to set to check membership * Refactor to add protocol key to storage_options only at the end * Fix overwriting storage_options nested values * Add tests * Revert "Transform all HF HTTP URLs to HF protocol" This reverts commit a337212. * Test that DownloadConfig.storage_options are not modified * Fix so DownloadConfig.storage_options are not modified * Refactor fix * Test also GitHub URL * Fix DownloadConfig.storage_options for GitHub URL
- Loading branch information
1 parent
7666c77
commit eb81144
Showing
2 changed files
with
86 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters