caddyhttp: Reorder some access log fields; add host matcher test case

This field order reads a little more naturally.
This commit is contained in:
Matthew Holt
2020-07-07 08:11:35 -06:00
parent 7bfe5b6c95
commit 0bf2565c37
2 changed files with 8 additions and 3 deletions

View File

@ -122,6 +122,11 @@ func TestHostMatcher(t *testing.T) {
input: "sub.foo.example.net",
expect: false,
},
{
match: MatchHost{"www.*.*"},
input: "www.example.com",
expect: true,
},
{
match: MatchHost{"example.com"},
input: "example.com:5555",