2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

fix(http): send minimal end multipart boundary (#6661)

This commit is contained in:
Ionuț G. Stan
2025-04-24 22:19:48 +03:00
committed by GitHub
parent f112edfdfa
commit 987d2e2dd3
+1 -1
View File
@@ -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]) => {