From 47eb5f1c4174b6c2c7d7983fdc2b6e26f1868506 Mon Sep 17 00:00:00 2001 From: WongXX Date: Mon, 27 Jan 2025 16:51:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=BE=A9GET=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E6=94=9C=E5=B8=B6Body=E5=A0=B1=E9=8C=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index b17f259..352ede2 100644 --- a/index.ts +++ b/index.ts @@ -22,7 +22,7 @@ fs.watch(path, async function (event, filename) { url: requestData.Request.URL, method: method, headers: requestData.Request.Headers, - body: requestData.Request.Body, + body: method !== 'GET' ? requestData.Request.Body : undefined, }) requestData.Response.StatusCode = res.statusCode