kennethreitz/requests — pull request #1717 by jvantuyl (2013-10-30 20:33:27+00:00)
Title: loosen URL handling for non-native URL schemes

Requests supports adding other URL schemes by mounting an adapter for them. For
schemes that have unfamiliar URLs, requests currently prevents the request from ever reaching the adapter, making it impossible to extend requests with sometimes convenient extensions. This change allows requests to detect this and gives the adapter author the full ability to shoot themselves firmly in the foot.

NOTE: This is to be compatible with the previous work I did to add a file URL scheme to Requests (which is now available here: https://github.com/jvantuyl/requests-file). I've since added a data URL scheme implementation (available https://github.com/jvantuyl/requests-data).