Closed TooTallNate closed 1 year ago
Latest commit: b2df98cc78d9bbfb16482c04c02bafc488253858
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
proxy-agents | ✅ Ready (Inspect) | Visit Preview | May 15, 2023 9:09pm |
During an HTTP request, if
opts.protocol
is set, then use that to determine thesecureEndpoint
value. Coupling that with an explicitly setagent.protocol
in the instance (essentially "locking" it for use with eitherhttp
orhttps
module), then the agent will never rely on the stack trace. By default it will still rely on the stack trace to allow for agent instances to be used with eitherhttp
orhttps
modules.Also moved the internal props to an object using a symbol, instead of relying on underscore props.
Fixes #158.