http to https redirect breaks custom agent #6

Open
opened 1 year ago by f0x · 0 comments
f0x commented 1 year ago

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
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.