mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-15 10:41:22 +08:00
Properly handle path-only addresses (also fix godoc typos)
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user