From 0fc020d3033a12ba42a650f3002cd50034368876 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 20 May 2016 18:42:06 -0400 Subject: Added missing response::send() after refactoring --- app/Controller/FileViewer.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Controller/FileViewer.php') diff --git a/app/Controller/FileViewer.php b/app/Controller/FileViewer.php index 52ff0d0e..a49b0fb2 100644 --- a/app/Controller/FileViewer.php +++ b/app/Controller/FileViewer.php @@ -74,6 +74,7 @@ class FileViewer extends BaseController } else { try { + $this->response->send(); $this->objectStorage->output($file['path']); } catch (ObjectStorageException $e) { $this->logger->error($e->getMessage()); @@ -100,6 +101,8 @@ class FileViewer extends BaseController $this->response->status(304); } else { + $this->response->send(); + try { $this->objectStorage->output($filename); @@ -124,6 +127,7 @@ class FileViewer extends BaseController try { $file = $this->getFile(); $this->response->withFileDownload($file['name']); + $this->response->send(); $this->objectStorage->output($file['path']); } catch (ObjectStorageException $e) { $this->logger->error($e->getMessage()); -- cgit v1.2.3