Skip to content

fix: use current agent to determine secure proxy#55

Merged
wraithgar merged 2 commits intomainfrom
lk/secure-proxy-fix
Sep 8, 2023
Merged

fix: use current agent to determine secure proxy#55
wraithgar merged 2 commits intomainfrom
lk/secure-proxy-fix

Conversation

@lukekarrys
Copy link
Copy Markdown
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
Copy Markdown
Member

Will the flag now be wrong on socks proxies?

@lukekarrys
Copy link
Copy Markdown
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