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

Side by Side Diff: LayoutTests/http/tests/navigation/resources/redirect-to-go-back.pl

Issue 20652002: Fix trailing whitespace in scripts and misc. files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't change literal diff. Created 7 years, 5 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 1 #!/usr/bin/perl
2 # Simple script to generate a 302 HTTP redirect to a page that triggers a 2 # Simple script to generate a 302 HTTP redirect to a page that triggers a
3 # navigation back (only if POST is used). 3 # navigation back (only if POST is used).
4 4
5 use CGI; 5 use CGI;
6 $query = new CGI; 6 $query = new CGI;
7 7
8 $method = $query->request_method(); 8 $method = $query->request_method();
9 9
10 if ($method eq "POST") { 10 if ($method eq "POST") {
11 print "Status: 302 Moved Temporarily\r\n"; 11 print "Status: 302 Moved Temporarily\r\n";
12 print "Location: top-go-back.html\r\n"; 12 print "Location: top-go-back.html\r\n";
13 print "\r\n"; 13 print "\r\n";
14 } else { 14 } else {
15 print "Status: 405 Method not allowed\r\n"; 15 print "Status: 405 Method not allowed\r\n";
16 print "Content-type: text/plain\r\n"; 16 print "Content-type: text/plain\r\n";
17 print "\r\n"; 17 print "\r\n";
18 print "This should only be requested via POST ($method was used)." 18 print "This should only be requested via POST ($method was used)."
19 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698