Explorar o código

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

lenar %!s(int64=13) %!d(string=hai) anos
pai
achega
805a2672d0
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  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));
         }
     }