From a2af9fef2db9ae84c844895ecb89b4af24a7e398 Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 17 Aug 2022 17:57:56 +0300 Subject: [PATCH] sync with 0.16 --- app/controllers/api/avatars.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index e9ef7e5eb..6bd136073 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -301,7 +301,7 @@ App::get('/v1/avatars/qr') ->desc('Get QR Code') ->groups(['api', 'avatars']) ->label('scope', 'avatars.read') - ->label('cache', true) + ->label('cache', false) ->label('cache.resource', 'avatar/qr') ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) ->label('sdk.namespace', 'avatars') @@ -336,7 +336,7 @@ App::get('/v1/avatars/qr') $response ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache ->setContentType('image/png') - ->file($image->output('png', 9)) + ->send($image->output('png', 9)) ; });