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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/post-echo-as-utf-8.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 #use CGI (); 2 #use CGI ();
3 3
4 print "Content-type: text/plain;charset=utf-8\n\n"; 4 print "Content-type: text/plain;charset=utf-8\n\n";
5 5
6 if ($ENV{'REQUEST_METHOD'} eq "POST") { 6 if ($ENV{'REQUEST_METHOD'} eq "POST") {
7 read(STDIN, $request, $ENV{'CONTENT_LENGTH'}) 7 read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
8 || die "Could not get query\n"; 8 || die "Could not get query\n";
9 # print CGI::escape($request); 9 # print CGI::escape($request);
10 print $request; 10 print $request;
11 } else { 11 } else {
12 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n"; 12 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
13 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698