Skip to content

Commit fc51d54

Browse files
xelarisfabpot
authored andcommitted
[HttpFoundation] Make use of isEmpty() method
1 parent 76de700 commit fc51d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function prepare(Request $request)
207207
{
208208
$headers = $this->headers;
209209

210-
if ($this->isInformational() || in_array($this->statusCode, array(204, 304))) {
210+
if ($this->isInformational() || $this->isEmpty()) {
211211
$this->setContent(null);
212212
$headers->remove('Content-Type');
213213
$headers->remove('Content-Length');

0 commit comments

Comments
 (0)