Send proper content type for avatar

This commit is contained in:
Johannes Zellner
2024-01-23 17:57:11 +01:00
parent b923925a6c
commit b8be174610
+1
View File
@@ -121,6 +121,7 @@ async function getAvatar(req, res, next) {
const [error, avatar] = await safe(users.getAvatar(req.params.identifier));
if (error) return next(BoxError.toHttpError(error));
res.set('Content-Type', 'image/png');
res.send(avatar);
}