mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-02 01:33:11 +08:00
caddyhttp: Reorder some access log fields; add host matcher test case
This field order reads a little more naturally.
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user