From c8104739c1bf885056b84fb1a9dee42f960ed5c0 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 15 Feb 2022 08:04:39 +0100 Subject: [PATCH] Resolve #234 --- snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php index e006a7279..01351bae4 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php @@ -357,7 +357,7 @@ class ServiceActions && \str_starts_with($oResponse->getHeader('content-type'), 'image/') ) { $this->oActions->cacheByKey($sData); - \header('Content-Type: '.$sContentType); + \header('Content-Type: ' . $oResponse->getHeader('content-type')); \header('Cache-Control: public'); \header('Expires: '.\gmdate('D, j M Y H:i:s', 2592000 + \time()).' UTC'); \rewind($tmp);