Skip to content

Commit

Permalink
[HttpFoundation] Make use of isEmpty() method
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaris authored and fabpot committed Jan 12, 2015
1 parent 76de700 commit fc51d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Response.php
Expand Up @@ -207,7 +207,7 @@ public function prepare(Request $request)
{
$headers = $this->headers;

if ($this->isInformational() || in_array($this->statusCode, array(204, 304))) {
if ($this->isInformational() || $this->isEmpty()) {
$this->setContent(null);
$headers->remove('Content-Type');
$headers->remove('Content-Length');
Expand Down

0 comments on commit fc51d54

Please sign in to comment.