1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00

http: modified perl cgi test to remove newline from env variables

Fixes #1639

R=golang-dev, bradfitzgo
CC=golang-dev
https://golang.org/cl/4291069
This commit is contained in:
Roger Pau Monné 2011-03-25 09:33:45 -07:00 committed by Brad Fitzpatrick
parent 1f2234633f
commit 500effe79e

View File

@ -30,5 +30,7 @@ foreach my $k (sort keys %$params) {
}
foreach my $k (sort keys %ENV) {
print "env-$k=$ENV{$k}\n";
my $clean_env = $ENV{$k};
$clean_env =~ s/[\n\r]//g;
print "env-$k=$clean_env\n";
}