mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
chore: boundary error (#7419)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -77,7 +77,7 @@ const formDataToStream = (form, headersHandler, options) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (boundary.length < 1 || boundary.length > 70) {
|
if (boundary.length < 1 || boundary.length > 70) {
|
||||||
throw Error('boundary must be 10-70 characters long');
|
throw Error('boundary must be 1-70 characters long');
|
||||||
}
|
}
|
||||||
|
|
||||||
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
||||||
|
|||||||
Reference in New Issue
Block a user