2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-24 14:04:14 +03:00

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

* Compatible with follow-redirect aborts the request

* Use the error code
This commit is contained in:
Xianming Zhong
2020-02-15 13:41:08 +08:00
committed by GitHub
parent 77f0ae4f61
commit 56b72bbd2c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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));
});
+1 -1
View File
@@ -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": [
{