Properly handle path-only addresses (also fix godoc typos)

This commit is contained in:
Matthew Holt
2016-07-18 18:45:20 -06:00
parent 4ff46ad447
commit df018ea64a
3 changed files with 5 additions and 4 deletions

View File

@ -50,6 +50,7 @@ func TestStandardizeAddress(t *testing.T) {
{`https://host:443/path/foo`, "https", "host", "443", "/path/foo", false},
{`host:80/path`, "", "host", "80", "/path", false},
{`host:https/path`, "https", "host", "443", "/path", false},
{`/path`, "", "", "", "/path", false},
} {
actual, err := standardizeAddress(test.input)