Sign in
webkit
/
WebKit
/
f6013b2d8a67a21431419ad45d183d56cb11b105
/
.
/
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'
);
?>