summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/resources/auth/subresource.php
blob: 0945d537b68fa0d87397015a28a7ab8ccfc18814 (plain)
1
2
3
4
5
6
7
8
9
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 */";
  }
?>