From a24e8cebf028ec2607dd5453f17ac5db87c332f1 Mon Sep 17 00:00:00 2001 From: Ercan Ozkaya Date: Wed, 3 Feb 2016 18:59:14 +0200 Subject: [PATCH] re #289: Fix streaming --- .../koowa/libraries/dispatcher/response/abstract.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/libraries/koowa/libraries/dispatcher/response/abstract.php b/code/libraries/koowa/libraries/dispatcher/response/abstract.php index 0480c59e92..0bb0226d3f 100644 --- a/code/libraries/koowa/libraries/dispatcher/response/abstract.php +++ b/code/libraries/koowa/libraries/dispatcher/response/abstract.php @@ -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) {