-
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow redirects on HTTP requests (#361)
Lack of redirects support is notable when local PyPI server is used with fallback to official one. For example, that's how pypiserver implementation works. On the PyPI pages all the package links are relative, not absolute. What means that we cannot use original request url to construct full package url to fetch it, we should respect the url to where we were redirected. Without redirects resolution we end with the urls which our pypiserver cannot process and the HTTP 404 response obliviously will never match the md5 package digest, so we'll fail on verification stage in anyway. Fixes #200 Fixes #270
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 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