From fc51d544b5697bf0ebc27e1071e362df4533450e Mon Sep 17 00:00:00 2001 From: Alexander Schwenn Date: Sun, 11 Jan 2015 14:22:08 +0100 Subject: [PATCH] [HttpFoundation] Make use of isEmpty() method --- src/Symfony/Component/HttpFoundation/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index 42ed9ae6e6..fa80ccc2af 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -207,7 +207,7 @@ class Response { $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');