With a single custom agent, it can either support http or https, and thus throws Unhandled rejection TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:" when redirecting to the other protocol.
got solves this by allowing an agent object, with http and https entries so you can provide both
With a single custom `agent`, it can either support http or https, and thus throws `Unhandled rejection TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"` when redirecting to the other protocol.
[got](https://github.com/sindresorhus/got) solves this by allowing an agent object, with http and https entries so you can provide both
With a single custom
agent
, it can either support http or https, and thus throwsUnhandled rejection TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
when redirecting to the other protocol.got solves this by allowing an agent object, with http and https entries so you can provide both