فهرست منبع

Unify $http_response_code = null
the same that in header

Joanhey 6 سال پیش
والد
کامیت
103a8ed123
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -280,7 +280,7 @@ class Http
      *
      * @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') {
             return $http_response_code ? \header($content, $replace, $http_response_code) : \header($content, $replace);