summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/matchers_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/matchers_test.go')
-rw-r--r--modules/caddyhttp/matchers_test.go5
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,