vercel / fetch

Opinionated `fetch` (with retrying and DNS caching) optimized for use with Node.js

Home Page:https://npmjs.com/@vercel/fetch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It creates a new agent on every redirect

matheuss opened this issue · comments

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