Fixed Content-Length not being a string

This commit is contained in:
Kir_Antipov 2024-01-04 10:29:42 +00:00
parent 8c5467ce2d
commit c35cdf9d6f

View file

@ -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;
}