浏览代码

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

Joanhey 6 年之前
父节点
当前提交
19468bdcfc
共有 1 个文件被更改,包括 1 次插入1 次删除
  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])) {