Skip to content

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

@cheenamalhotra

Description

@cheenamalhotra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions