fix: add content-type headers to mii image api route
This commit is contained in:
parent
8b12a443bb
commit
1485267bdd
1 changed files with 6 additions and 1 deletions
|
|
@ -105,10 +105,15 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
|||
|
||||
return new NextResponse(buffer, {
|
||||
headers: {
|
||||
"Content-Type": "image/png",
|
||||
"Content-Disposition": `inline; filename="${filename}"`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return new NextResponse(buffer);
|
||||
return new NextResponse(buffer, {
|
||||
headers: {
|
||||
"Content-Type": "image/webp",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue