sporkmonger/addressable — Issue #52: New Addressable::URI throws exception on #scheme=
Author: jordansissel
Created: 2012-01-05 08:42:13+00:00
State: open

Howdy! Thanks for the code. Found a bug I think.

>> a = Addressable::URI.new
=> #
>> a.scheme = "http"
Addressable::URI::InvalidURIError: Absolute URI missing hierarchical segment: 'http:'

If I set a host first, this works:

>> a.host = "foo"
=> "foo"
>> a.scheme = "http"
=> "http"