From 9911f85fe15e82f4da23919be51eb46e7b0f72bc Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Wed, 19 Oct 2022 18:23:34 +0100 Subject: [PATCH] Fix header issue --- pages/api/steamavatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;