Sign in
webkit
/
WebKit
/
b4234713c85383e00e81c500ff74ee340e8a262a
/
.
/
LayoutTests
/
http
/
tests
/
resources
/
redirect-to-video-if-accepted.php
blob: 93bef8236835878a07ac568fac2796fedbfe1b4c [
file
] [
log
] [
blame
]
<?
php
if
(
strpos
(
$_SERVER
[
'HTTP_ACCEPT'
],
'video/*'
)
!==
false
)
{
header
(
'HTTP/1.1 301 Moved Permanently'
);
header
(
'Location: '
.
$_GET
[
'video'
]);
header
(
'Cache-Control: no-cache, must-revalidate'
);
return
;
}
header
(
'HTTP/1.1 400 Bad Request'
);
?>