Fix issue with content type
This commit is contained in:
parent
9f8c9a3ba0
commit
30ff2aaf02
@ -21,6 +21,6 @@ export default async function handler(req, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const buffer = fs.readFileSync(imagePath);
|
const buffer = fs.readFileSync(imagePath);
|
||||||
res.setHeader("Content-Type", "image/jpg" + ext);
|
res.setHeader("Content-Type", "image/" + ext);
|
||||||
res.send(buffer);
|
res.send(buffer);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user