2
0
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:
Tim Garthwaite
2018-01-11 10:44:40 -05:00
parent bbfa7bfacc
commit e452f761f7
+1 -1
View File
@@ -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;
}