mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +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) {
|
||||
throw Error('boundary must be 10-70 characters long');
|
||||
throw Error('boundary must be 1-70 characters long');
|
||||
}
|
||||
|
||||
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
||||
|
||||
Reference in New Issue
Block a user