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

Commit

Permalink
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/PhpEnvironment/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0311bd

Please sign in to comment.