mirror of
https://github.com/caddyserver/caddy.git
synced 2026-10-30 02:06:30 +00:00
Properly handle path-only addresses (also fix godoc typos)
This commit is contained in:
parent
4ff46ad447
commit
df018ea64a
3 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue