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

Side by Side Diff: LayoutTests/http/tests/misc/resources/post-echo-and-notify-done.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 print "Content-type: text/html\n\n"; 3 print "Content-type: text/html\n\n";
4 4
5 if ($ENV{'REQUEST_METHOD'} eq "POST") { 5 if ($ENV{'REQUEST_METHOD'} eq "POST") {
6 read(STDIN, $request, $ENV{'CONTENT_LENGTH'}) 6 read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
7 || die "Could not get query\n"; 7 || die "Could not get query\n";
8 print $request; 8 print $request;
9 print "<script>if (window.testRunner) testRunner.notifyDone();</script>"; 9 print "<script>if (window.testRunner) testRunner.notifyDone();</script>";
10 } else { 10 } else {
11 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n"; 11 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
12 } 12 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698