summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2020-03-30 10:46:39 +0200
committerGitHub <noreply@github.com>2020-03-30 10:46:39 +0200
commitc5c991d659cf731b22f1eec18bc9290acea6d36b (patch)
tree9908938b5a01e2dbabd4822d992068f9bf868b79
parent2ad24af488da7dc518684cc146914b2937749031 (diff)
parent6fdf0d6e67a3a5c9113afb2d64dc9fd3725f859d (diff)
[ci skip] Merge pull request #5903 from achraf52/patch-2
Add HTTP/2.0 server protocol value variation
-rw-r--r--system/core/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index fadc0a0b1..f8ab7e800 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -569,7 +569,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);
}