-
Notifications
You must be signed in to change notification settings - Fork 326
Open
Labels
Milestone
Description
HTTP.get(nil)
HTTP::Request::UnsupportedSchemeError (unknown scheme: )
HTTP.get('')
HTTP::Request::UnsupportedSchemeError (unknown scheme: )
HTTP.get('/')
HTTP::Request::UnsupportedSchemeError (unknown scheme: )
HTTP.get(':')
Addressable::URI::InvalidURIError (Cannot assemble URI string with ambiguous path: ':')
Ideally it should return InvalidURI exceptions if the URL is invalid instead of UnsupportedSchemeError, as it is less confusing. Ideally also, it should return the same exception for all these cases
cesc1989, skatkov and pedestrianlove