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

Fixing maxBodyLength exceeded error form follow-redirects when axios's...

Fixing maxBodyLength exceeded error form follow-redirects when axios's maxContentLength is not exceeded
上级 6e605016
......@@ -128,6 +128,10 @@ module.exports = function httpAdapter(config) {
transport = isHttps ? httpsFollow : httpFollow;
}
if (config.maxContentLength) {
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.
先完成此消息的编辑!
想要评论请 注册