We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76de700 commit fc51d54Copy full SHA for fc51d54
src/Symfony/Component/HttpFoundation/Response.php
@@ -207,7 +207,7 @@ public function prepare(Request $request)
207
{
208
$headers = $this->headers;
209
210
- if ($this->isInformational() || in_array($this->statusCode, array(204, 304))) {
+ if ($this->isInformational() || $this->isEmpty()) {
211
$this->setContent(null);
212
$headers->remove('Content-Type');
213
$headers->remove('Content-Length');
0 commit comments