From: Justin Erenkrantz Date: Fri, 4 Feb 2005 00:02:26 +0000 (+0000) Subject: Add charset to the painfully old example CGI scripts. X-Git-Tag: 2.0.53~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4c24da8460e5469816c2ab35158665d74e08881;p=thirdparty%2Fapache%2Fhttpd.git Add charset to the painfully old example CGI scripts. MFC: 111580 Reviewed by: fielding, erikabele, jerenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@151262 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index bd43c0417eb..5e7689bdd62 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ Changes with Apache 2.0.53 + *) Add charset to example CGI scripts. [Roy Fielding] + *) mod_ssl: fail quickly if SSL connection is aborted rather than making many doomed ap_pass_brigade calls. PR 32699. [Joe Orton] diff --git a/docs/cgi-examples/printenv b/docs/cgi-examples/printenv index 207074361a7..e4c2140bcff 100644 --- a/docs/cgi-examples/printenv +++ b/docs/cgi-examples/printenv @@ -3,7 +3,7 @@ ## printenv -- demo CGI program which just prints its environment ## -print "Content-type: text/plain\n\n"; +print "Content-type: text/plain; charset=iso-8859-1\n\n"; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; diff --git a/docs/cgi-examples/test-cgi b/docs/cgi-examples/test-cgi index a85631e3aa2..e27f8575235 100644 --- a/docs/cgi-examples/test-cgi +++ b/docs/cgi-examples/test-cgi @@ -3,7 +3,7 @@ # disable filename globbing set -f -echo Content-type: text/plain +echo "Content-type: text/plain; charset=iso-8859-1" echo echo CGI/1.0 test script report: