]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add charset to the painfully old example CGI scripts.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 4 Feb 2005 00:02:26 +0000 (00:02 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 4 Feb 2005 00:02:26 +0000 (00:02 +0000)
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

CHANGES
docs/cgi-examples/printenv
docs/cgi-examples/test-cgi

diff --git a/CHANGES b/CHANGES
index bd43c0417eb0e983d1d810c6e86a6f1a373e3819..5e7689bdd622cfdfee8ed8278ecd7a2470d1c698 100644 (file)
--- 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]
 
index 207074361a7d9eadcb5a8eee15022cea10cb4968..e4c2140bcff5e382ee37b6df99971b641d4e5987 100644 (file)
@@ -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;
index a85631e3aa2b6c0cef0afb6362a5b9fd5b28dceb..e27f8575235c1dd7c4e124b6ec666140303b2efd 100644 (file)
@@ -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: