Explorar o código

Delete rerun method, now it is faster
Changed directly the response code.

Joanhey %!s(int64=6) %!d(string=hai) anos
pai
achega
19468bdcfc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -296,7 +296,7 @@ class Http
         }
 
         if ('location' === \strtolower($key) && !$http_response_code) {
-            return self::header($content, true, 302);
+            $http_response_code = 302;
         }
 
         if (isset(HttpCache::$codes[$http_response_code])) {