[ticket/10029] Use $_SERVER['SERVER_PROTOCOL'] for determining HTTP version.

PHPBB3-10029
This commit is contained in:
Oleg Pudeyev 2011-02-09 02:14:46 -05:00
parent b414a4d107
commit 0e861ac3ab

View file

@ -2631,8 +2631,14 @@ function send_status_line($code, $message)
}
else
{
if (isset($_SERVER['HTTP_VERSION']))
if (!empty($_SERVER['SERVER_PROTOCOL']))
{
$version = $_SERVER['SERVER_PROTOCOL'];
}
else if (!empty($_SERVER['HTTP_VERSION']))
{
// I cannot remember where I got this from.
// This code path may never be reachable in reality.
$version = $_SERVER['HTTP_VERSION'];
}
else