From e1589b8a4a00ba3b304a0f814dd1ca3cf17ca39f Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 3 Oct 2024 19:31:57 +0200 Subject: [PATCH] add todo --- src/utils/body.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/body.ts b/src/utils/body.ts index c4068a1a..581d9d6b 100644 --- a/src/utils/body.ts +++ b/src/utils/body.ts @@ -90,6 +90,8 @@ export function readRawBody( if (_resolved.constructor === Object) { return Buffer.from(JSON.stringify(_resolved)); } + // TODO: Handle other BodyInit types + // https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#body if (_resolved instanceof URLSearchParams) { return Buffer.from(_resolved.toString()); }