2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +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:
Gustavo López
2020-03-06 08:55:19 -05:00
committed by GitHub
parent 5214445139
commit 6642ca9aa1
7 changed files with 46 additions and 9 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = function mergeConfig(config1, config2) {
'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',
'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',
'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',
'maxContentLength', 'maxBodyLength', 'validateStatus', 'maxRedirects', 'httpAgent',
'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
];