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