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