-
-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set a library-specific user agent when automatically retrieving $refs.
This behavior is (already) deprecated, but oddly there are "real world" webservers which seem to have allowed the `requests` default user agent (i.e. respond correctly) but not the `urllib` default vague `Python/3.x` one (i.e. respond with a 403 or whatever). Since it seems polite to set this anyhow, we may as well fix behavior for anyone who happens to be encountering such a webserver.
- Loading branch information
Showing
3 changed files
with
58 additions
and
5 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