2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Fixed errors when running tests

This commit is contained in:
Jay
2022-03-10 21:25:55 +02:00
parent 80387424e4
commit e52e4dbb57
2 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -346,7 +346,8 @@ module.exports = function httpAdapter(config) {
// Handle errors
req.on('error', function handleRequestError(err) {
if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
// @todo remove
// if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
reject(AxiosError.from(err, null, config, req));
});