Skip to content

Clear proxy credentials when p_no_proxy excludes the host - #386

Open
mame wants to merge 1 commit into
ruby:masterfrom
mame:no-proxy-credentials
Open

mame wants to merge 1 commit into
ruby:masterfrom
mame:no-proxy-credentials

Conversation

@mame

@mame mame commented Nov 29, 2026

Copy link
Copy Markdown
Member

Net::HTTP.new dropped the proxy address and port when the host matched p_no_proxy, but kept p_user and p_pass, so the request to the host still carried a Proxy-Authorization header. Clear them as well, as is already the case when the proxy comes from the environment.

Reported-by: Claude (Anthropic) and Stephan Lipp (Ada Logics)

Net::HTTP.new dropped the proxy address and port when the host matched
p_no_proxy, but kept p_user and p_pass, so the request to the host still
carried a Proxy-Authorization header. Clear them as well, as is already
the case when the proxy comes from the environment.

Reported-by: Claude (Anthropic) and Stephan Lipp (Ada Logics)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant