http to https redirect breaks custom agent #6

Open
opened 2021-06-24 17:18:58 +02:00 by f0x · 0 comments

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 labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: joepie91/node-bhttp#6
No description provided.