Send proper content type for avatar
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user