requests v2.12.2 Release Notes

Release Date: 2016-11-30 // over 7 years ago
  • ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixed several issues with IDNA-encoding URLs that are technically invalid but which are widely accepted. Requests will now attempt to IDNA-encode a URL if it can but, if it fails, and the host contains only ASCII characters, it will be passed through optimistically. This will allow users to opt-in to using IDNA2003 themselves if they want to, and will also allow technically invalid but still common hostnames.
    • ๐Ÿ›  Fixed an issue where URLs with leading whitespace would raise InvalidSchema errors.
    • ๐Ÿ›  Fixed an issue where some URLs without the HTTP or HTTPS schemes would still have HTTP URL preparation applied to them.
    • ๐Ÿ›  Fixed an issue where Unicode strings could not be used in basic auth.
    • ๐Ÿ”Œ Fixed an issue encountered by some Requests plugins where constructing a Response object would cause Response.content to raise an AttributeError.