From 029b64bef8b2b77220c3e12d679023dc2716e67f Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Sun, 6 Aug 2023 16:49:15 -0400 Subject: [PATCH] respond: Add Content-Type note to the heredoc HTML example --- src/docs/markdown/caddyfile/directives/respond.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/markdown/caddyfile/directives/respond.md b/src/docs/markdown/caddyfile/directives/respond.md index 7bf339b..513513c 100644 --- a/src/docs/markdown/caddyfile/directives/respond.md +++ b/src/docs/markdown/caddyfile/directives/respond.md @@ -55,9 +55,10 @@ respond /secret/* "Access denied" 403 { } ``` -Write an HTML response, using [heredoc syntax](/docs/caddyfile/concepts#heredocs) to control whitespace: +Write an HTML response, using [heredoc syntax](/docs/caddyfile/concepts#heredocs) to control whitespace, and also setting the `Content-Type` header to match the response body: ```caddy-d +header Content-Type text/html respond < Foo