Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only enforce host presence for HTTP / HTTPS
Requests supports adding other protocols by mounting an adapter for them. For protocols that don't require a host entry, this handling is overzealous, and prevents useful URLs from making it through. This change only enforces this for the http and https protocol schemes, and adjusts the rest of the URL handling to be more friendly to non-present network locations.
- Loading branch information