diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-07-07 08:11:35 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-07-07 08:11:35 -0600 |
commit | 0bf2565c37c0b2e4857be70c5302d6ad5c34b80d (patch) | |
tree | 567a1febc7f1a9ac56c386e0ebe9d5f4e449a317 /modules/caddyhttp/matchers_test.go | |
parent | 7bfe5b6c9520daabb71d22f24470bc91eca931d9 (diff) |
caddyhttp: Reorder some access log fields; add host matcher test case
This field order reads a little more naturally.
Diffstat (limited to 'modules/caddyhttp/matchers_test.go')
-rw-r--r-- | modules/caddyhttp/matchers_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -123,6 +123,11 @@ func TestHostMatcher(t *testing.T) { expect: false, }, { + match: MatchHost{"www.*.*"}, + input: "www.example.com", + expect: true, + }, + { match: MatchHost{"example.com"}, input: "example.com:5555", expect: true, |