From 8c8e0493de3e20c0e644d896598a83ac877fe47b Mon Sep 17 00:00:00 2001 From: markthree <1801982702@qq.com> Date: Sun, 8 Dec 2024 20:07:15 +0800 Subject: [PATCH] perf(adapters/node): check _hasBody once --- src/adapters/node/internal/request.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/adapters/node/internal/request.ts b/src/adapters/node/internal/request.ts index 59469c15..35441420 100644 --- a/src/adapters/node/internal/request.ts +++ b/src/adapters/node/internal/request.ts @@ -89,6 +89,7 @@ export const NodeRequestProxy = /* @__PURE__ */ (() => return false; } } + this.__hasBody__ = true; return true; }