undici
undici copied to clipboard
Protocol from proxy url is ignored when building proxy Agent
Bug Description
Imagine proxy URL in format:
http://123.123.1.1:8080
Code here: https://github.com/nodejs/undici/blob/3a77cbb471b76175898d8b094beb9b40ceadd671/lib/proxy-agent.js#L33
Doesn't respect 'http' protocol if specified in proxy Url.
Environment
Node 18
It somehow relates to #2278, would be better if we fully support the URL
object instead
Closed by #2810