From 70691e1523d63c51fc14b80b5107864cffd634ec Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 12 Jul 2019 22:21:47 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20proxy-media=E5=BE=8C=E3=81=AEContent-Typ?= =?UTF-8?q?e=E3=81=8C=E9=81=95=E3=81=86=20(#5143)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/proxy/proxy-media.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/proxy/proxy-media.ts b/src/server/proxy/proxy-media.ts index eadfab54a..415eef6c3 100644 --- a/src/server/proxy/proxy-media.ts +++ b/src/server/proxy/proxy-media.ts @@ -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) {