mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
Add independent maxBodyLength option (#2781)
* Add independent option to set the maximum size of the request body * Remove maxBodyLength check * Update README * Assert for error code and message
This commit is contained in:
@@ -34,6 +34,7 @@ const config: AxiosRequestConfig = {
|
||||
onUploadProgress: (progressEvent: any) => {},
|
||||
onDownloadProgress: (progressEvent: any) => {},
|
||||
maxContentLength: 2000,
|
||||
maxBodyLength: 2000,
|
||||
validateStatus: (status: number) => status >= 200 && status < 300,
|
||||
maxRedirects: 5,
|
||||
proxy: {
|
||||
|
||||
Reference in New Issue
Block a user