Closed rmrice closed 4 years ago
Doesn't this creates a new agent per request -- this will effectively create a new connection right?
@flippmoke right 😬 decided to remove configuring an http/https agent. Testing with downstream libraries indicates we don't need it. Now this just updates the request config to allow for one redirect.
edit: ended up adding two agents-- one for http and https. this implementation won't recreate the agent per request but rather use one of the two agents depending on the protocol.
We want to allow both http and https for requests, so configure agent to do soThis changes the request config to allow up to one redirect by default (in case the request url is shortened and needs to redirect). This can be customized by passing in a custom client config (see readme).