Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/PhpEnvironment/Response.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ public function getVersion()
6161
*/
6262
protected function detectVersion()
6363
{
64-
if (isset($_SERVER['SERVER_PROTOCOL'])) {
65-
if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {
66-
return self::VERSION_11;
67-
}
64+
if (isset($_SERVER['SERVER_PROTOCOL']) && $_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {
65+
return self::VERSION_11;
6866
}
6967

7068
return self::VERSION_10;

0 commit comments

Comments
 (0)