Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Commit

Permalink
uri: mitigate breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Aug 14, 2019
1 parent d800298 commit f79a38c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ func ParseURI(rawURI string) (URI, error) {
}
// Using URL methods to split host.
u.Host = u.Opaque
// TODO: validate host and port.
// See https://github.com/golang/go/issues/29098.
host, rawPort := u.Hostname(), u.Port()
uri := URI{
Scheme: u.Scheme,
Expand Down
4 changes: 0 additions & 4 deletions uri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ func TestParseURI(t *testing.T) {
name: "hierarchical",
in: "stun://example.org",
},
{
name: "bad port",
in: "stun:example.org:port",
},
{
name: "bad scheme",
in: "tcp:example.org",
Expand Down

0 comments on commit f79a38c

Please sign in to comment.