Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
re #289: Fix streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ercanozkaya committed Feb 3, 2016
1 parent 0eafb95 commit a24e8ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ public function isStreamable()
{
$request = $this->getRequest();

$isPDF = (bool) $this->getContentType() == 'application/pdf';
$isInline = (bool) !$request->isDownload();
$isSeekable = (bool) $this->getStream()->isSeekable();
$isPDF = $this->getContentType() == 'application/pdf';
$isInline = !$request->isDownload();
$isSeekable = $this->getStream()->isSeekable();

if(!($isPDF && $isInline) && $isSeekable)
{
Expand Down

0 comments on commit a24e8ce

Please sign in to comment.