Pārlūkot izejas kodu

Delete validation as we use null
Separate return, as return null.

Joanhey 6 gadi atpakaļ
vecāks
revīzija
c74b834657
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      Protocols/Http.php

+ 2 - 1
Protocols/Http.php

@@ -283,7 +283,8 @@ class Http
     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);
+            \header($content, $replace, $http_response_code);
+            return;
         }
         if (\strpos($content, 'HTTP') === 0) {
             $key = 'Http-Code';