Fix header issue
This commit is contained in:
parent
0aa5be8bc9
commit
9911f85fe1
@ -24,7 +24,7 @@ export default async function handler(req, res) {
|
|||||||
let buffer = await data.buffer();
|
let buffer = await data.buffer();
|
||||||
buffer = await sharp(buffer).resize(150, 150).toBuffer();
|
buffer = await sharp(buffer).resize(150, 150).toBuffer();
|
||||||
fs.writeFileSync(imagePath, buffer);
|
fs.writeFileSync(imagePath, buffer);
|
||||||
res.setHeader("Content-Type", "image/" + ext);
|
res.setHeader("Content-Type", "image/jpg");
|
||||||
res.send(buffer);
|
res.send(buffer);
|
||||||
console.log('Steam Avatar Cache - Added avatar "' + mapHash + '"');
|
console.log('Steam Avatar Cache - Added avatar "' + mapHash + '"');
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user