diff options
Diffstat (limited to 'core/avatar/avatarcontroller.php')
-rw-r--r-- | core/avatar/avatarcontroller.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/avatar/avatarcontroller.php b/core/avatar/avatarcontroller.php index 9eb7069166e..19ea1f7a4d8 100644 --- a/core/avatar/avatarcontroller.php +++ b/core/avatar/avatarcontroller.php @@ -43,7 +43,7 @@ class AvatarController extends Controller { /** @var IAvatarManager */ protected $avatarManager; - /** @var ICache */ + /** @var \OC\Cache\File */ protected $cache; /** @var IL10N */ @@ -59,7 +59,7 @@ class AvatarController extends Controller { * @param string $appName * @param IRequest $request * @param IAvatarManager $avatarManager - * @param ICache $cache + * @param \OC\Cache\File $cache * @param IL10N $l10n * @param IUserManager $userManager * @param IUserSession $userSession @@ -67,7 +67,7 @@ class AvatarController extends Controller { public function __construct($appName, IRequest $request, IAvatarManager $avatarManager, - ICache $cache, + \OC\Cache\File $cache, IL10N $l10n, IUserManager $userManager, IUserSession $userSession) { @@ -209,8 +209,7 @@ class AvatarController extends Controller { $resp = new DataDisplayResponse($image->data(), Http::STATUS_OK, - ['Content-Type' => $image->mimeType(), - 'Pragma' => 'public']); + ['Content-Type' => $image->mimeType()]); $resp->setETag(crc32($image->data())); $resp->cacheFor(0); |