Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: LayoutTests/http/tests/resources/post-and-verify-hybrid.cgi

Issue 155173003: checkpoint unix version of apache win32 patch. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-daemonize apache on unix Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -wT
2 2
3 use Config; 3 use Config;
4 4
5 print "Content-type: text/plain\n\n"; 5 print "Content-type: text/plain\n\n";
6 6
7 if ($ENV{'REQUEST_METHOD'} eq "POST") { 7 if ($ENV{'REQUEST_METHOD'} eq "POST") {
8 if ($ENV{'CONTENT_LENGTH'}) { 8 if ($ENV{'CONTENT_LENGTH'}) {
9 read(STDIN, $postData, $ENV{'CONTENT_LENGTH'}) || die "Could not get pos t data\n"; 9 read(STDIN, $postData, $ENV{'CONTENT_LENGTH'}) || die "Could not get pos t data\n";
10 } else { 10 } else {
11 $postData = ""; 11 $postData = "";
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 if ($postData eq $expectedData) { 79 if ($postData eq $expectedData) {
80 print "OK"; 80 print "OK";
81 } else { 81 } else {
82 print "FAILED"; 82 print "FAILED";
83 } 83 }
84 } else { 84 } else {
85 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n"; 85 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
86 } 86 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/resources/post-and-verify.cgi ('k') | LayoutTests/http/tests/resources/slow-script.pl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698