diff options
author | Andrey Andreev <narf@devilix.net> | 2020-03-30 10:46:39 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2020-03-30 10:47:13 +0200 |
commit | 4d2f50fb96bf434081fbcc6f14128aeec7d81189 (patch) | |
tree | 850fede95e48e339be55e4898f47d229e272d6f5 /system/core/Common.php | |
parent | e76cd850177fefae34c570e5b49c0ba18955c3b5 (diff) |
[ci skip] Merge pull request #5903 from achraf52/patch-2
Add HTTP/2.0 server protocol value variation
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 624b5a9f7..e09a61886 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -565,7 +565,7 @@ if ( ! function_exists('set_status_header')) return; } - $server_protocol = (isset($_SERVER['SERVER_PROTOCOL']) && in_array($_SERVER['SERVER_PROTOCOL'], array('HTTP/1.0', 'HTTP/1.1', 'HTTP/2'), TRUE)) + $server_protocol = (isset($_SERVER['SERVER_PROTOCOL']) && in_array($_SERVER['SERVER_PROTOCOL'], array('HTTP/1.0', 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0'), TRUE)) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1'; header($server_protocol.' '.$code.' '.$text, TRUE, $code); } |