| Index: third_party/WebKit/LayoutTests/http/tests/security/resources/abe-cookie-check.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/abe-cookie-check.php b/third_party/WebKit/LayoutTests/http/tests/security/resources/abe-cookie-check.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a65f11db6ae7e661583e4678f5c62b7c33d4905b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/abe-cookie-check.php
|
| @@ -0,0 +1,22 @@
|
| +<?php
|
| +$cookie_check = $_GET["Cookie"];
|
| +if (isset($cookie_check)) {
|
| + if ($cookie_check == "NotSet") {
|
| + if (isset($_COOKIE['TestCookie'])) {
|
| + header("HTTP/1.0 404 Not Found");
|
| + exit;
|
| + }
|
| + } else if ($cookie_check != $_COOKIE['TestCookie']) {
|
| + header("HTTP/1.0 404 Not Found");
|
| + exit;
|
| + }
|
| +}
|
| +
|
| +$name = 'abe.png';
|
| +$fp = fopen($name, 'rb');
|
| +header("Content-Type: image/png");
|
| +header("Content-Length: " . filesize($name));
|
| +
|
| +fpassthru($fp);
|
| +exit;
|
| +?>
|
|
|