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:
parent
1f2234633f
commit
500effe79e
4
src/pkg/http/cgi/testdata/test.cgi
vendored
4
src/pkg/http/cgi/testdata/test.cgi
vendored
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user