From c35cdf9d6fa3d31e791c99a70f6d08f75c96f8cd Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Thu, 4 Jan 2024 10:29:42 +0000 Subject: [PATCH] Fixed `Content-Length` not being a string --- src/utils/net/headers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/net/headers.ts b/src/utils/net/headers.ts index a0209cd..a481ff4 100644 --- a/src/utils/net/headers.ts +++ b/src/utils/net/headers.ts @@ -270,6 +270,6 @@ export function inferHttpRequestBodyHeaders(body: HttpRequestBody): Headers { undefined; headers["Content-Type"] = type; - headers["Content-Length"] = length; + headers["Content-Length"] = String(length); return headers; }