Fix issue with content type

This commit is contained in:
Liam 2022-10-19 17:45:12 +01:00
parent 9f8c9a3ba0
commit 30ff2aaf02

@ -21,6 +21,6 @@ export default async function handler(req, res) {
return;
}
const buffer = fs.readFileSync(imagePath);
res.setHeader("Content-Type", "image/jpg" + ext);
res.setHeader("Content-Type", "image/" + ext);
res.send(buffer);
}