소스 검색

Simplify and faster headers from Set-Cookie

Joanhey 6 년 전
부모
커밋
3edfb563f3
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      Protocols/Http.php

+ 1 - 3
Protocols/Http.php

@@ -242,9 +242,7 @@ class Http
         // other headers
         foreach (HttpCache::$header as $key => $item) {
             if ('Set-Cookie' === $key && \is_array($item)) {
-                foreach ($item as $it) {
-                    $header .= $it . "\r\n";
-                }
+                $header .= \implode("\r\n", $item) . "\r\n";
             } else {
                 $header .= $item . "\r\n";
             }