lib/down/net_http.rb in down-5.0.0 vs lib/down/net_http.rb in down-5.0.1

- old
+ new

@@ -283,9 +283,11 @@ uri end # Makes sure that the URL is properly encoded. def addressable_normalize(url) + URI(url) + rescue URI::InvalidURIError addressable_uri = Addressable::URI.parse(url) addressable_uri.normalize.to_s end # When open-uri raises an exception, it doesn't expose the response object.