mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +03:00
Don't set maxBodyLength in follow-redirects if maxContentLength is -1
This commit is contained in:
@@ -128,7 +128,7 @@ module.exports = function httpAdapter(config) {
|
||||
transport = isHttps ? httpsFollow : httpFollow;
|
||||
}
|
||||
|
||||
if (config.maxContentLength) {
|
||||
if (config.maxContentLength && maxBodyLength > -1) {
|
||||
options.maxBodyLength = config.maxContentLength;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user