Closed mudge closed 9 years ago
A tricky issue here is that URI.escape
and URI.unescape
have actually been deprecated. See http://stackoverflow.com/questions/2824126/whats-the-difference-between-uri-escape-and-cgi-escape#answer-13059657 but the conclusion is to use Addressable instead for encoding URIs.
Fixed in 0.2.0.
While RFC 7231 specifies that
Location
headers should be valid URI references, we have seen headers with unescaped characters in them, e.g. http://shar.es/1p3DSI:When passed to
URI
, this fails with anInvalidURIError
as URIs must be ASCII-only.