Commit 7555fbac authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

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
parent efd7bbf1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
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]
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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: