From df859ef4d15aa847c26b52d9a15362161eae4476 Mon Sep 17 00:00:00 2001 From: AsPulse Date: Sun, 17 Jul 2022 13:41:03 +0900 Subject: [PATCH] Update fastify.ts --- src/export/fastify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export/fastify.ts b/src/export/fastify.ts index b548729..c760919 100644 --- a/src/export/fastify.ts +++ b/src/export/fastify.ts @@ -40,7 +40,7 @@ export class TypedAPIFastify { const implement = await api.processor(TypedAPIFastify.option)({ header: request.headers, remoteAddress: request.ip, - body: request.body, + body: api.endpoint.method === 'GET' ? request.params : request.body, raw: request, }); if(implement.cookie !== undefined) reply.header('Set-Cookie', implement.cookie);