diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-16 12:59:07 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-16 13:00:12 +0100 |
commit | 30d60d22d2f5f60a5e5020dcbd3cfdf1010ad4db (patch) | |
tree | d931d4ca3ebfe9eacf0c47711bdd2c0f6afdbd85 /bonus | |
parent | 4fa76ff48a06ab81c9ff9dcf4de745e1ebecfd1e (diff) | |
download | chawan-30d60d22d2f5f60a5e5020dcbd3cfdf1010ad4db.tar.gz |
trans.cgi: set content type to text/x-ansi
Diffstat (limited to 'bonus')
-rwxr-xr-x | bonus/trans.cgi | 4 |
1 files 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. |