From 0bf2565c37c0b2e4857be70c5302d6ad5c34b80d Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 7 Jul 2020 08:11:35 -0600 Subject: caddyhttp: Reorder some access log fields; add host matcher test case This field order reads a little more naturally. --- modules/caddyhttp/matchers_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/caddyhttp/matchers_test.go') diff --git a/modules/caddyhttp/matchers_test.go b/modules/caddyhttp/matchers_test.go index 883680f..9a2836d 100644 --- a/modules/caddyhttp/matchers_test.go +++ b/modules/caddyhttp/matchers_test.go @@ -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", -- cgit v1.2.3