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

Unified Diff: LayoutTests/http/tests/security/upgrade-insecure-requests/resources/echo-https-header.pl

Issue 1178093002: Correctly send the 'HTTPS' header for top-level navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/upgrade-insecure-requests/resources/echo-https-header.pl
diff --git a/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/echo-https-header.pl b/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/echo-https-header.pl
new file mode 100755
index 0000000000000000000000000000000000000000..a10222178c49ce221ff50a7eaa8c0910294ad0a6
--- /dev/null
+++ b/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/echo-https-header.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -wT
+use strict;
+
+print "Content-Type: text/html\n";
+print "Access-Control-Allow-Origin: *\n";
+print "Cache-Control: no-store\n\n";
+
+print <<DONE
+{ "https": "$ENV{"HTTP_HTTPS"}" }
+DONE

Powered by Google App Engine
This is Rietveld 408576698