Эх сурвалжийг харах

Unify $http_response_code = null
the same that in header

Joanhey 6 жил өмнө
parent
commit
103a8ed123

+ 1 - 1
Protocols/Http.php

@@ -280,7 +280,7 @@ class Http
      *
      *
      * @return bool|void
      * @return bool|void
      */
      */
-    public static function header($content, $replace = true, $http_response_code = 0)
+    public static function header($content, $replace = true, $http_response_code = null)
     {
     {
         if (PHP_SAPI !== 'cli') {
         if (PHP_SAPI !== 'cli') {
             return $http_response_code ? \header($content, $replace, $http_response_code) : \header($content, $replace);
             return $http_response_code ? \header($content, $replace, $http_response_code) : \header($content, $replace);