fetch
fetch copied to clipboard
It creates a new agent on every redirect
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: https://github.com/zeit/fetch/pull/25#issuecomment-443787960
Thank you for the report. We are archiving this project; you can read more details here: https://github.com/vercel/fetch/issues/83