Commit 637c27f5 authored by Roy T. Fielding's avatar Roy T. Fielding
Browse files

Add charset to the painfully old example scripts.

These should really be replaced with proper encoding
of the output.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111580 13f79535-47bb-0310-9956-ffa450edef68
parent 977e034f
Loading
Loading
Loading
Loading
+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: