Fix: proxy-media後のContent-Typeが違う (#5143)

This commit is contained in:
MeiMei 2019-07-12 22:21:47 +09:00 committed by syuilo
parent 902f319a49
commit 4d9550d1b1

View file

@ -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) {