summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2021-12-13 13:59:58 -0700
committerGitHub <noreply@github.com>2021-12-13 13:59:58 -0700
commitecac03cdcb6cceae743aac16faca7f32e5da1607 (patch)
tree35cadcb9ae06d7e1aa33a987d5f5ef239c7b5446 /caddytest
parentc04d24cafa60e522842d5188587ab07af2082e9b (diff)
caddyhttp: Enhance vars matcher (#4433)
* caddyhttp: Enhance vars matcher Enable "or" logic for multiple values. Fall back to checking placeholders if not a var name. * Fix tests (thanks @mohammed90 !)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/matcher_syntax.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/caddytest/integration/caddyfile_adapt/matcher_syntax.txt b/caddytest/integration/caddyfile_adapt/matcher_syntax.txt
index 019ce14..cb521aa 100644
--- a/caddytest/integration/caddyfile_adapt/matcher_syntax.txt
+++ b/caddytest/integration/caddyfile_adapt/matcher_syntax.txt
@@ -101,7 +101,9 @@
"match": [
{
"vars": {
- "{http.request.uri}": "/vars-matcher"
+ "{http.request.uri}": [
+ "/vars-matcher"
+ ]
}
}
],