소스 검색

merged branch lenar/content-length (PR #1955)

Commits
-------

805a267 Remove Content-Length header adding for now. Fixes #1846.

Discussion
----------

[HttpFoundation] Remove Content-Length header adding for now. Fixes #1846.
Fabien Potencier 13 년 전
부모
커밋
d036fec86e
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/Symfony/Component/HttpFoundation/Response.php

+ 0 - 2
src/Symfony/Component/HttpFoundation/Response.php

@@ -142,8 +142,6 @@ class Response
         // Fix Content-Length
         if ($this->headers->has('Transfer-Encoding')) {
             $this->headers->remove('Content-Length');
-        } elseif (!$this->headers->has('Content-Length')) {
-            $this->headers->set('Content-Length', strlen($this->content));
         }
     }