From 1372a5b5bc46ef2e204d787c83a17a81ffbde756 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 5 Jul 2024 17:32:26 +0200 Subject: Improvements to example/Caddyfile --- example/Caddyfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/Caddyfile') diff --git a/example/Caddyfile b/example/Caddyfile index 05ad0ba..4a4879f 100644 --- a/example/Caddyfile +++ b/example/Caddyfile @@ -12,7 +12,7 @@ http://template.localhost { # the directory is requested. try_files {path} {path}/index.gmi - @gmi path_regexp \.gmi$ + @gmi path *.gmi # Handle all requests for .gmi files specially. route @gmi { @@ -36,7 +36,7 @@ http://template.localhost { # templates directive above. This body simply imports the template we # actually want. Setting Content-Type is required because there's no # actual file for Caddy to determine the value from. - header Content-Type text/html + header Content-Type "text/html; charset=utf-8" respond `{{ include "tpl/render_gemtext.html" }}` } -- cgit v1.2.3