diff options
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/AvatarFileController.php | 2 | ||||
-rw-r--r-- | app/Controller/FileViewerController.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/AvatarFileController.php b/app/Controller/AvatarFileController.php index 81a324fb..12c4069c 100644 --- a/app/Controller/AvatarFileController.php +++ b/app/Controller/AvatarFileController.php @@ -69,7 +69,7 @@ class AvatarFileController extends BaseController $etag = md5($filename.$size); $this->response->withCache(365 * 86400, $etag); - $this->response->withContentType('image/jpeg'); + $this->response->withContentType('image/png'); if ($this->request->getHeader('If-None-Match') !== '"'.$etag.'"') { $this->response->send(); diff --git a/app/Controller/FileViewerController.php b/app/Controller/FileViewerController.php index 49568912..0178cb30 100644 --- a/app/Controller/FileViewerController.php +++ b/app/Controller/FileViewerController.php @@ -116,7 +116,7 @@ class FileViewerController extends BaseController $etag = md5($filename); $this->response->withCache(5 * 86400, $etag); - $this->response->withContentType('image/jpeg'); + $this->response->withContentType('image/png'); if ($this->request->getHeader('If-None-Match') === '"'.$etag.'"') { $this->response->status(304); |