Skip to content

Conversation

@lukekarrys
Copy link
Contributor

This matches the old behavior of make-fetch-happen@11.1.11 where the
proxy agent was determined based on the original request url.

Fixes npm/cli#6760

This matches the old behavior of `make-fetch-happen@11.1.1`[1] where the
proxy agent was determined based on the original request url.

Fixes npm/cli#6760

[1]: https://github.com/npm/make-fetch-happen/blob/eb4a83806e9deb7e441c8f2f6a673f929055a5eb/lib/agent.js#L195C1-L195C1
@lukekarrys lukekarrys requested a review from a team as a code owner September 7, 2023 23:38
@wraithgar
Copy link
Member

Will the flag now be wrong on socks proxies?

@lukekarrys
Copy link
Contributor Author

the flag is ignored for socks proxies since there is no insecure vs secure for socks proxies. they are always secure

@wraithgar wraithgar merged commit d859166 into main Sep 8, 2023
@wraithgar wraithgar deleted the lk/secure-proxy-fix branch September 8, 2023 16:16
@github-actions github-actions bot mentioned this pull request Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] NPM v10.0.0 fails to communicate correctly with HTTP proxy (HTTP 400)

2 participants