From 3b19aa2b5a77440f8cb4d11e80937935d187f1cd Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 15 Jun 2023 19:18:55 -0400 Subject: headers: Allow `>` to defer shortcut for replacements (#5574) --- caddytest/integration/caddyfile_adapt/header.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'caddytest/integration') diff --git a/caddytest/integration/caddyfile_adapt/header.txt b/caddytest/integration/caddyfile_adapt/header.txt index 95c1474..ec2a842 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" + } + ] + } + } } ] } -- cgit v1.2.3