From 32cbd302704ea5b3ad452a3f06e635fcfbec8aaa Mon Sep 17 00:00:00 2001 From: Sangjin Yoon Date: Thu, 5 Dec 2024 14:51:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20prehandler=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/proxy-server/src/server/fastify.server.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/proxy-server/src/server/fastify.server.ts b/backend/proxy-server/src/server/fastify.server.ts index 954b956..4cb9073 100644 --- a/backend/proxy-server/src/server/fastify.server.ts +++ b/backend/proxy-server/src/server/fastify.server.ts @@ -83,11 +83,11 @@ const initialize = (server: FastifyInstance, logger: Logger) => { const addPlugins = (server: FastifyInstance) => { server.register(replyFrom, replyFromConfig); - server.addHook('preHandler', async (request) => { - (request as any).locals = { - originalContentType: request.headers['content-type'], - }; - }); + // server.addHook('preHandler', async (request) => { + // (request as any).locals = { + // originalContentType: request.headers['content-type'], + // }; + // }); }; const addRouters = (server: FastifyInstance, logger: Logger) => {