summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-04-14 14:37:56 +0200
committerAndrey Andreev <narf@devilix.net>2015-04-14 14:37:56 +0200
commit58efdd3e1380daa01e609098d0fcb88e56b2cf67 (patch)
tree062d17ebe43d25804c2231c115b3f0c8da49b9c3 /system
parentc14aa9bcca4b5876f2bf46bbe9eb4c7d3e0e013a (diff)
parent2b7a97c55eb7e2797cea0ee39a96996a80c43f27 (diff)
Merge pull request #3769 from ftwbzhao/develop
[ci skip] Support for status codes 100, 101, 402 in set_status_header()
Diffstat (limited to 'system')
-rw-r--r--system/core/Common.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index a96828e96..a81e45500 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -506,6 +506,9 @@ if ( ! function_exists('set_status_header'))
{
is_int($code) OR $code = (int) $code;
$stati = array(
+ 100 => 'Continue',
+ 101 => 'Switching Protocols',
+
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
@@ -524,6 +527,7 @@ if ( ! function_exists('set_status_header'))
400 => 'Bad Request',
401 => 'Unauthorized',
+ 402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',