From acc25b9a95ff9fbf00b38a0312927561fe9ecf8a Mon Sep 17 00:00:00 2001 From: divinity76 Date: Sun, 16 Mar 2025 10:38:54 +0100 Subject: [PATCH] allow specifying ?ContentType=html example: https://termbin.com/l8ai => text/plain; charset=utf-8 https://termbin.com/l8ai?ContentType=html => text/html; charset=utf-8 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e3922d5..0ab84c9 100644 --- a/README.md +++ b/README.md @@ -327,6 +327,9 @@ server { location / { root /home/www/code/; index index.txt index.html; + if ($arg_ContentType = "html") { + add_header Content-Type "text/html; charset=utf-8"; + } } } ```