diff --git a/src/routes/profile.js b/src/routes/profile.js index 4882b7b04..720bb08ae 100644 --- a/src/routes/profile.js +++ b/src/routes/profile.js @@ -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); }