瀏覽代碼

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

lenar 13 年之前
父節點
當前提交
805a2672d0
共有 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));
         }
     }