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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/cross-site-progress-events.cgi

Issue 135583003: checkpoint Blink-side work to use Apache on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: new rollup patch 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
OLDNEW
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -wT
2 2
3 print "Content-type: text/plain\n"; 3 print "Content-type: text/plain\n";
4 4
5 if ($ENV{'REQUEST_METHOD'} eq "POST") { 5 if ($ENV{'REQUEST_METHOD'} eq "POST") {
6 if ($ENV{'QUERY_STRING'} eq "allow") { 6 if ($ENV{'QUERY_STRING'} eq "allow") {
7 print "Access-Control-Allow-Origin: *\n"; 7 print "Access-Control-Allow-Origin: *\n";
8 } 8 }
9 print "\n"; 9 print "\n";
10 if ($ENV{'CONTENT_LENGTH'}) { 10 if ($ENV{'CONTENT_LENGTH'}) {
11 read(STDIN, $request, $ENV{'CONTENT_LENGTH'}) || die "Could not get quer y\n"; 11 read(STDIN, $request, $ENV{'CONTENT_LENGTH'}) || die "Could not get quer y\n";
12 } else { 12 } else {
13 $request = ""; 13 $request = "";
14 } 14 }
15 print $request; 15 print $request;
16 } else { 16 } else {
17 print "\n"; 17 print "\n";
18 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n"; 18 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
19 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698