Index: LayoutTests/http/tests/resources/redirect.php |
diff --git a/LayoutTests/http/tests/resources/redirect.php b/LayoutTests/http/tests/resources/redirect.php |
index cfeb37d1c56f4e24fde8f2bb07ad4c4a15cf0f83..6c6a9b4daf4aa9f3744fcffc967e138abd90789f 100644 |
--- a/LayoutTests/http/tests/resources/redirect.php |
+++ b/LayoutTests/http/tests/resources/redirect.php |
@@ -1,16 +1,19 @@ |
<?php |
$url = $_GET['url']; |
$refresh = $_GET['refresh']; |
- |
+ |
if (isset($refresh)) { |
header("HTTP/1.1 200"); |
header("Refresh: $refresh; url=$url"); |
return; |
} |
+ header("Location: $url"); |
+ if (isset($_GET['cors_enabled'])) |
+ header("Access-Control-Allow-Origin: *"); |
Mike West
2014/06/23 06:13:37
It doesn't matter for any of these tests, but it m
sof
2014/06/23 06:42:18
Good idea, a redirect script this "high up" is bet
|
+ |
$code = $_GET['code']; |
if (!isset($code)) |
$code = 302; |
header("HTTP/1.1 $code"); |
- header("Location: $url"); |
?> |