Skip to content

2.6.0

Choose a tag to compare

@neonmoe neonmoe released this 23 Feb 15:36

First off, about the GitHub releases: every version between 2.0.1 and 2.6.0 seems to have been nuked, unfortunately. Sorry, if you were leaning on those. I accidentally removed the tags on github by pushing with --mirror from a version that did not have the tags. I managed to recover the tags, but GitHub seems to have misplaced the releases for the newer tags. Don't know why. The crates.io releases obviously still exist, and all the changes can be seen in the changelog.

Now, the actual 2.6.0. This time we have one new feature by @alpha-tango-kilo, urlencoding, which encodes any special characters in the url so that it can be properly handled by regular http servers. Previously, the idea was to leave the encoding up to the user, but as an optional feature, you can now avoid that manual work by using this feature. Overall internals improvements are included in this release as well.

Changed

  • The error returned when the request url does not start with https:// or http:// is now a slightly different IoError, with a clearer message. This will be changed to a proper minreq-specific error in 3.0, but for now it's an IoError to avoid breaking the Error type.

Fixed

  • The crate-internal function parse_url now properly handles missing protocols (which is the cause for the change above). Thanks for the report, @alpha-tango-kilo! (#70)

Added

  • The urlencoding feature for automatically percent-encoding urls. Thanks for the idea and PR, @alpha-tango-kilo! (#67, #68)