mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'ticket/p/10029' into develop-olympus
* ticket/p/10029: [ticket/10029] Use $_SERVER['SERVER_PROTOCOL'] for determining HTTP version.
This commit is contained in:
commit
5c009997b2
1 changed files with 7 additions and 1 deletions
|
@ -2631,8 +2631,14 @@ function send_status_line($code, $message)
|
||||||
}
|
}
|
||||||
else
|
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'];
|
$version = $_SERVER['HTTP_VERSION'];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue