Browse Source

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

Joanhey 6 years ago
parent
commit
c74b834657
1 changed files with 2 additions and 1 deletions
  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';