Index: LayoutTests/http/tests/security/upgrade-insecure-requests/resources/check-https-header.pl |
diff --git a/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/check-https-header.pl b/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/check-https-header.pl |
new file mode 100755 |
index 0000000000000000000000000000000000000000..28a8732c5a5be321eb55a0bc5a973c58558ce298 |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/check-https-header.pl |
@@ -0,0 +1,22 @@ |
+#!/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 |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="/resources/testharness.js"></script> |
+ <script src="/resources/testharnessreport.js"></script> |
+ <script> |
+ test(function () { |
+ var httpsHeader = "$ENV{"HTTP_HTTPS"}"; |
+ assert_equals(httpsHeader, "1"); |
+ }, "Verify that this request was delivered with an 'HTTPS' header."); |
+ </script> |
+</head> |
+</html> |
+DONE |