We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
origin
Thanks for a great library ⛵
Retrieving origin works:
uri = Addressable::URI.new(:scheme => 'https', :host => 'google.com') uri.origin #=> "https://google.com"
But setting origin via the hash, or directly, doesn't work:
# desired behaviour uri = Addressable::URI.new(:origin => 'https://google.com:8080') uri.port #=> 8080 uri.origin #=> "https://google.com:8080" # current behaviour uri = Addressable::URI.new #=> #<Addressable::URI:0x3fc63817e894 URI:> uri.origin = "http://newexample.com" # throws Addressable::URI::InvalidURIError: Absolute URI missing hierarchical segment: 'http:' Addressable::URI.new(:origin => 'https://google.com').to_s == '' # unexpected
This is under version 2.5.1.
The text was updated successfully, but these errors were encountered:
Addressable::URI::InvalidURIError (Hostname not supplied: '')
omit
No branches or pull requests
Thanks for a great library ⛵
Retrieving origin works:
But setting origin via the hash, or directly, doesn't work:
This is under version 2.5.1.
The text was updated successfully, but these errors were encountered: