diff options
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 9a8cc5d6b3..398a02380b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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 | 
