From 987d2e2dd3b362757550f36eab875e60640b6ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionu=C8=9B=20G=2E=20Stan?= Date: Thu, 24 Apr 2025 22:19:48 +0300 Subject: [PATCH] fix(http): send minimal end multipart boundary (#6661) --- lib/helpers/formDataToStream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/formDataToStream.js b/lib/helpers/formDataToStream.js index 972b99f..afc6174 100644 --- a/lib/helpers/formDataToStream.js +++ b/lib/helpers/formDataToStream.js @@ -76,7 +76,7 @@ const formDataToStream = (form, headersHandler, options) => { } const boundaryBytes = textEncoder.encode('--' + boundary + CRLF); - const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF); + const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF); let contentLength = footerBytes.byteLength; const parts = Array.from(form.entries()).map(([name, value]) => {