| Index: LayoutTests/http/tests/resources/origin.php
|
| diff --git a/LayoutTests/http/tests/resources/origin.php b/LayoutTests/http/tests/resources/origin.php
|
| index 7177cb3849b88cf30cb55a2c64d890d61e554420..5a34e3add306dbde64ed6a3d30e86ee8087f6b9c 100644
|
| --- a/LayoutTests/http/tests/resources/origin.php
|
| +++ b/LayoutTests/http/tests/resources/origin.php
|
| @@ -1,4 +1,16 @@
|
| <?php
|
| -header('HTTP/1.1 302 Found');
|
| -header('Location: ' . ($_SERVER['HTTP_ORIGIN'] ? 'square100.png' : 'square200.png'));
|
| -?>
|
| +
|
| +$gotOrigin = 0;
|
| +foreach (getallheaders() as $name => $value) {
|
| + if ($name == "Origin") {
|
| + $gotOrigin = 1;
|
| + }
|
| +}
|
| +
|
| +if ($gotOrigin) {
|
| + header('Location: square100.png');
|
| +}
|
| +else {
|
| + header('Location: square200.png');
|
| +}
|
| +header('HTTP/1.1 302 Redirect');
|
|
|