fix: add content-type headers to mii image api route

This commit is contained in:
trafficlunar 2025-05-22 22:29:03 +01:00
parent 8b12a443bb
commit 1485267bdd

View file

@ -105,10 +105,15 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
return new NextResponse(buffer, { return new NextResponse(buffer, {
headers: { headers: {
"Content-Type": "image/png",
"Content-Disposition": `inline; filename="${filename}"`, "Content-Disposition": `inline; filename="${filename}"`,
}, },
}); });
} }
return new NextResponse(buffer); return new NextResponse(buffer, {
headers: {
"Content-Type": "image/webp",
},
});
} }