-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let requests handle url encoding (#610)
Previously, if a plugin url was like "https://mypluginrepo.example.com/download.php?plugin=MyPlugin", it raises an error as "?" and "=" where encoded `Trace: 404 Client Error: Not Found for url: https://mypluginrepo.example.com/download.php%3Fplugin%3DMyPlugin` The issue is that quote() would encode the entire URL including the protocol and special characters that should remain unencoded (like ://?=). This would break the URL structure. `download_remote_file_to_local` use `requests`. Let it handle the encoding part and provide instead the base url and query params.
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 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
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