It creates a new agent on every redirect
matheuss opened this issue · comments
https://github.com/zeit/fetch/blob/53ee6c5bf02a5dd261a6ce4df0f687fa32c2b4d1/index.js#L57-L59
It should only create one agent per protocol.
Doesn't actually create new agent. getAgent
return previously created agent if available.
https://github.com/zeit/fetch/blob/c04c28a6468ec216932d9aef9f312a2692aa42d4/index.js#L16-L35
But if custom agent is passed, it is overridden: #25 (comment)
Thank you for the report. We are archiving this project; you can read more details here: #83