Skip to content

Commit

Permalink
sf2.7 fix StreamedResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
ngodfraind committed Aug 3, 2015
1 parent ef528e2 commit a6c0397
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Controller/ImagePlayerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Claroline\CoreBundle\Entity\Resource\ResourceNode;

Expand All @@ -38,7 +39,8 @@ function () use ($path) {
}
);
$response->headers->set('Content-Type', $node->getMimeType());

return $response;
$response->send();

return new Response();
}
}

0 comments on commit a6c0397

Please sign in to comment.