diff --git a/src/PhpEnvironment/Response.php b/src/PhpEnvironment/Response.php index 976548025f..97e562623a 100644 --- a/src/PhpEnvironment/Response.php +++ b/src/PhpEnvironment/Response.php @@ -61,10 +61,8 @@ public function getVersion() */ protected function detectVersion() { - if (isset($_SERVER['SERVER_PROTOCOL'])) { - if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') { - return self::VERSION_11; - } + if (isset($_SERVER['SERVER_PROTOCOL']) && $_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') { + return self::VERSION_11; } return self::VERSION_10;