mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-01 08:18:14 +09:00
Fix: proxy-media後のContent-Typeが違う (#5143)
This commit is contained in:
parent
2cb032b0e0
commit
70691e1523
@ -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.set('Cache-Control', 'max-age=31536000, immutable');
|
||||||
ctx.body = image.data;
|
ctx.body = image.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user