Skip to content

Commit

Permalink
Remove Content-Length header adding for now. Fixes #1846.
Browse files Browse the repository at this point in the history
  • Loading branch information
lenar committed Aug 13, 2011
1 parent 0ad6e42 commit 805a267
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Symfony/Component/HttpFoundation/Response.php
Expand Up @@ -142,8 +142,6 @@ public function prepare()
// 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));
}
}

Expand Down

0 comments on commit 805a267

Please sign in to comment.