From 30d60d22d2f5f60a5e5020dcbd3cfdf1010ad4db Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 16 Mar 2024 12:59:07 +0100 Subject: trans.cgi: set content type to text/x-ansi --- bonus/trans.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonus/trans.cgi b/bonus/trans.cgi index 693dec2a..f9e25cca 100755 --- a/bonus/trans.cgi +++ b/bonus/trans.cgi @@ -21,8 +21,8 @@ TEXT=$(printf '%s\n' "$QUERY_STRING" | "$CHA_LIBEXEC_DIR"/urldec) # Write a Content-Type HTTP header. The `trans' command outputs plain text, -# so we use text/plain. -printf 'Content-Type: text/plain\n' +# but with ANSI escape codes, so we use text/x-ansi. +printf 'Content-Type: text/x-ansi\n' # We must write a newline here, so Chawan knows that all headers have been # written and incoming data from now on belongs to the body. -- cgit 1.4.1-2-gfad0