http to https redirect breaks custom agent #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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