Skip to content

net/url: parsing "localhost:8080" results in a url.URL with schema "localhost" #12585

@nodirt

Description

@nodirt

http://play.golang.org/p/9zinaw70z8

u, err := url.Parse("localhost:8080")

here u is &url.URL{Scheme:"localhost", Opaque:"8080"}
should be &url.URL{Host:"localhost:8080"}

Will fix.

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