Skip to content

Commit 280fc05

Browse files
committed
failing test for HEAD StreamedResponse requests
1 parent 1541fe2 commit 280fc05

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ public function testPrepareWith10Protocol()
5050
$this->assertEquals('no-cache, private', $response->headers->get('Cache-Control'));
5151
}
5252

53+
public function testPrepareWithHeadRequest()
54+
{
55+
$response = new StreamedResponse(function () { echo 'foo'; });
56+
$request = Request::create('/', 'HEAD');
57+
58+
$response->prepare($request);
59+
}
60+
5361
public function testSendContent()
5462
{
5563
$called = 0;

0 commit comments

Comments
 (0)