diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/resources/auth/subresource.php')
-rw-r--r-- | LayoutTests/http/tests/appcache/resources/auth/subresource.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/resources/auth/subresource.php b/LayoutTests/http/tests/appcache/resources/auth/subresource.php new file mode 100644 index 0000000..0945d53 --- /dev/null +++ b/LayoutTests/http/tests/appcache/resources/auth/subresource.php @@ -0,0 +1,10 @@ +<?php + if (!isset($_SERVER['PHP_AUTH_USER'])) { + header('WWW-Authenticate: Basic realm="WebKit AppCache Test Realm"'); + header('HTTP/1.0 401 Unauthorized'); + echo 'Authentication canceled'; + exit; + } else { + echo "/* Empty subresource */"; + } +?> |