summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/matcher_syntax.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/matcher_syntax.txt b/caddytest/integration/caddyfile_adapt/matcher_syntax.txt
index c5c2760..019ce14 100644
--- a/caddytest/integration/caddyfile_adapt/matcher_syntax.txt
+++ b/caddytest/integration/caddyfile_adapt/matcher_syntax.txt
@@ -31,6 +31,12 @@
query bar=baz
}
respond @matcher8 "query matcher merging pairs with the same keys"
+
+ @matcher9 {
+ header !Foo
+ header Bar foo
+ }
+ respond @matcher9 "header matcher with null field matcher"
}
----------
{
@@ -183,6 +189,24 @@
"handler": "static_response"
}
]
+ },
+ {
+ "match": [
+ {
+ "header": {
+ "Bar": [
+ "foo"
+ ],
+ "Foo": null
+ }
+ }
+ ],
+ "handle": [
+ {
+ "body": "header matcher with null field matcher",
+ "handler": "static_response"
+ }
+ ]
}
]
}