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