mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Fix: proxy-media後のContent-Typeが違う (#5143)
This commit is contained in:
parent
902f319a49
commit
4d9550d1b1
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export async function proxyMedia(ctx: Koa.BaseContext) {
|
|||
};
|
||||
}
|
||||
|
||||
ctx.set('Content-Type', type);
|
||||
ctx.set('Content-Type', image.type);
|
||||
ctx.set('Cache-Control', 'max-age=31536000, immutable');
|
||||
ctx.body = image.data;
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue