Fix Core\Test

This commit is contained in:
Visman 2021-12-08 14:58:47 +07:00
parent 82d07fcd73
commit abd41ee853

View file

@ -72,13 +72,14 @@ class Test
) {
$index += 1;
}
if (
empty($_SERVER['HTTP_CACHE_CONTROL'])
&& false !== \strpos($_SERVER['SERVER_PROTOCOL'], '1.1')
) {
$index += 1;
} elseif (false !== \strpos($_SERVER['SERVER_PROTOCOL'], '1.0')) {
$index += 3;
if (empty($_SERVER['HTTP_CACHE_CONTROL'])) {
if (false !== \strpos($_SERVER['SERVER_PROTOCOL'], '1.1')) {
$index += 1;
}
} else {
if (false !== \strpos($_SERVER['SERVER_PROTOCOL'], '1.0')) {
$index += 3;
}
}
if (empty($_SERVER['HTTP_CONNECTION'])) {
$index += 1;