Skip to content

Cannot convert a '<string>' URL to class '<url>' #1702

@fraya

Description

@fraya
as(<url>, "https://play.opendylan.org") Invalid URL 'https://play.opendylan.org/': no file or directory component

Conversion to <https-server> works as expected.

as(<https-server>, "https://play.opendylan.org")

Conversion to <http-server> does not raise an error, but the type returned is <https-server>.

as(<http-server>, "https://play.opendylan.org")

Comment from @cgay

I guess the file or directory component should default to /

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions