[HttpFoundation] Make use of isEmpty() method
This commit is contained in:
parent
76de7006d5
commit
fc51d544b5
|
@ -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');
|
||||
|
|
Reference in New Issue