You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In #2426, axios started passing agents to follow-redirects; however, the documentation for follow-redirects shows the shape of agents differently than what axios is passing. It means that an alternative agent is not correctly resolved by follow-redirects.
To Reproduce
Pass in an httpsAgent with an invalid configuration, which should cause axios.request to reject. In 0.19.0, it rejects; on master, it does not. See code snippet below.
Describe the bug
In #2426,
axios
started passingagents
tofollow-redirects
; however, the documentation forfollow-redirects
shows the shape ofagents
differently than whataxios
is passing. It means that an alternative agent is not correctly resolved byfollow-redirects
.To Reproduce
Pass in an
httpsAgent
with an invalid configuration, which should causeaxios.request
to reject. In0.19.0
, it rejects; onmaster
, it does not. See code snippet below.Expected behavior
httpsAgent should be passed to
follow-redirects
Environment:
The text was updated successfully, but these errors were encountered: