未验证 提交 56b72bbd 编写于 作者: X Xianming Zhong 提交者: GitHub

Compatible with follow-redirect aborts the request (#2689)

* Compatible with follow-redirect aborts the request

* Use the error code
上级 77f0ae4f
......@@ -240,7 +240,7 @@ module.exports = function httpAdapter(config) {
// Handle errors
req.on('error', function handleRequestError(err) {
if (req.aborted) return;
if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;
reject(enhanceError(err, config, null, req));
});
......
......@@ -75,7 +75,7 @@
"unpkg": "dist/axios.min.js",
"typings": "./index.d.ts",
"dependencies": {
"follow-redirects": "1.5.10"
"follow-redirects": "^1.10.0"
},
"bundlesize": [
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册