mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix(http): send minimal end multipart boundary (#6661)
This commit is contained in:
@@ -76,7 +76,7 @@ const formDataToStream = (form, headersHandler, options) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
||||||
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF);
|
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF);
|
||||||
let contentLength = footerBytes.byteLength;
|
let contentLength = footerBytes.byteLength;
|
||||||
|
|
||||||
const parts = Array.from(form.entries()).map(([name, value]) => {
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user