summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2023-05-16 01:18:13 -0400
committerGitHub <noreply@github.com>2023-05-16 01:18:13 -0400
commite8352aef38642c20ff528836b6581094f087eb99 (patch)
tree804017249d89334cf7d1fe797589a22b35962af1 /caddytest
parent36546cd8b92d683942cda5cf5f9d8f58c08ae9b4 (diff)
headers: Add > Caddyfile shortcut for enabling defer (#5535)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/header.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/header.txt b/caddytest/integration/caddyfile_adapt/header.txt
index 34a044d..95c1474 100644
--- a/caddytest/integration/caddyfile_adapt/header.txt
+++ b/caddytest/integration/caddyfile_adapt/header.txt
@@ -17,6 +17,7 @@
+Link "Foo"
+Link "Bar"
}
+ header >Set Defer
}
----------
{
@@ -136,6 +137,17 @@
]
}
}
+ },
+ {
+ "handler": "headers",
+ "response": {
+ "deferred": true,
+ "set": {
+ "Set": [
+ "Defer"
+ ]
+ }
+ }
}
]
}