summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-20 18:42:06 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-20 18:42:06 -0400
commit0fc020d3033a12ba42a650f3002cd50034368876 (patch)
tree20d1700b046245c1a90300044e4dbafec645553d /app
parentd20e2e94eb4274951526a48cb0b67beac7062d09 (diff)
Added missing response::send() after refactoring
Diffstat (limited to 'app')
-rw-r--r--app/Controller/AvatarFile.php1
-rw-r--r--app/Controller/Captcha.php2
-rw-r--r--app/Controller/FileViewer.php4
3 files changed, 6 insertions, 1 deletions
diff --git a/app/Controller/AvatarFile.php b/app/Controller/AvatarFile.php
index 67c3efe1..1891a2fc 100644
--- a/app/Controller/AvatarFile.php
+++ b/app/Controller/AvatarFile.php
@@ -65,6 +65,7 @@ class AvatarFile extends BaseController
$this->response->withContentType('image/jpeg');
if ($this->request->getHeader('If-None-Match') !== '"'.$etag.'"') {
+ $this->response->send();
$this->render($filename, $size);
} else {
$this->response->status(304);
diff --git a/app/Controller/Captcha.php b/app/Controller/Captcha.php
index fb9d6fe3..f6c717b3 100644
--- a/app/Controller/Captcha.php
+++ b/app/Controller/Captcha.php
@@ -19,7 +19,7 @@ class Captcha extends BaseController
*/
public function image()
{
- $this->response->withContentType('image/jpeg');
+ $this->response->withContentType('image/jpeg')->send();
$builder = new CaptchaBuilder;
$builder->build();
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());