提交 e452f761 编写于 作者: T Tim Garthwaite

Don't set maxBodyLength in follow-redirects if maxContentLength is -1

上级 bbfa7bfa
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册