diff options
author | Francis Lavoie <[email protected]> | 2023-06-15 19:18:55 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-06-15 17:18:55 -0600 |
commit | 3b19aa2b5a77440f8cb4d11e80937935d187f1cd (patch) | |
tree | 21785c937980122f3ac66cfb393ab885228fd700 /caddytest | |
parent | 6a41b62e70f867eff30b38a8ff33e90108077b0f (diff) | |
download | caddy-3b19aa2b5a77440f8cb4d11e80937935d187f1cd.tar.gz caddy-3b19aa2b5a77440f8cb4d11e80937935d187f1cd.zip |
headers: Allow `>` to defer shortcut for replacements (#5574)
Diffstat (limited to 'caddytest')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/header.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/header.txt b/caddytest/integration/caddyfile_adapt/header.txt index 95c1474bf..ec2a842a3 100644 --- a/caddytest/integration/caddyfile_adapt/header.txt +++ b/caddytest/integration/caddyfile_adapt/header.txt @@ -18,6 +18,7 @@ +Link "Bar" } header >Set Defer + header >Replace Deferred Replacement } ---------- { @@ -148,6 +149,20 @@ ] } } + }, + { + "handler": "headers", + "response": { + "deferred": true, + "replace": { + "Replace": [ + { + "replace": "Replacement", + "search_regexp": "Deferred" + } + ] + } + } } ] } |