未验证 提交 f26e0c0e 编写于 作者: E Emily Morehouse 提交者: GitHub

Merge pull request #1287 from mividtim/mividtim/follow-redirects-max-length

Set maxBodyLength on follow-redirects to match maxContentLength on AxiosOptions
......@@ -128,6 +128,10 @@ module.exports = function httpAdapter(config) {
transport = isHttps ? httpsFollow : httpFollow;
}
if (config.maxContentLength && config.maxContentLength > -1) {
options.maxBodyLength = config.maxContentLength;
}
// Create the request
var req = transport.request(options, function handleResponse(res) {
if (req.aborted) return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册