ドライブファイルURL生成などの修正 (#5671)
* Fix: リモートプロキシ時にサムネイルのContent-Typeがおかしい * fix drive
This commit is contained in:
parent
b0bb5d8dfc
commit
78ef0a9929
5 changed files with 8 additions and 58 deletions
|
@ -78,7 +78,7 @@ export default async function(ctx: Koa.Context) {
|
|||
|
||||
const image = await convertFile();
|
||||
ctx.body = image.data;
|
||||
ctx.set('Content-Type', file.type);
|
||||
ctx.set('Content-Type', image.type);
|
||||
ctx.set('Cache-Control', 'max-age=31536000, immutable');
|
||||
} catch (e) {
|
||||
serverLogger.error(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue