Sfoglia il codice sorgente

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

Joanhey 6 anni fa
parent
commit
c74b834657
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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';