diff --git a/pages/api/steamavatar.js b/pages/api/steamavatar.js index 7643085..45f120e 100644 --- a/pages/api/steamavatar.js +++ b/pages/api/steamavatar.js @@ -24,7 +24,7 @@ export default async function handler(req, res) { let buffer = await data.buffer(); buffer = await sharp(buffer).resize(150, 150).toBuffer(); fs.writeFileSync(imagePath, buffer); - res.setHeader("Content-Type", "image/" + ext); + res.setHeader("Content-Type", "image/jpg"); res.send(buffer); console.log('Steam Avatar Cache - Added avatar "' + mapHash + '"'); return;