Update Test.php
This commit is contained in:
parent
8b1c9dedc7
commit
b64f9d17e3
1 changed files with 4 additions and 3 deletions
|
@ -74,9 +74,10 @@ class Test
|
|||
$index += 1;
|
||||
}
|
||||
|
||||
if (empty($_SERVER['HTTP_CONNECTION'])) {
|
||||
$index += 1;
|
||||
} elseif (! \preg_match('%^(?:keep-alive|close)$%iD', $_SERVER['HTTP_CONNECTION'])) {
|
||||
if (
|
||||
! empty($_SERVER['HTTP_CONNECTION'])
|
||||
&& ! \preg_match('%^(?:keep-alive|close)$%iD', $_SERVER['HTTP_CONNECTION'])
|
||||
) {
|
||||
$index += 3;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue