Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol from proxy url is ignored when building proxy Agent #2390

Closed
cheenamalhotra opened this issue Oct 31, 2023 · 2 comments
Closed

Protocol from proxy url is ignored when building proxy Agent #2390

cheenamalhotra opened this issue Oct 31, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@cheenamalhotra
Copy link

Bug Description

Imagine proxy URL in format:
http://123.123.1.1:8080

Code here:

protocol: opts.protocol || 'https'

Doesn't respect 'http' protocol if specified in proxy Url.

Environment

Node 18

@cheenamalhotra cheenamalhotra added the bug Something isn't working label Oct 31, 2023
@metcoder95
Copy link
Member

It somehow relates to #2278, would be better if we fully support the URL object instead

@metcoder95
Copy link
Member

Closed by #2810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants