Skip to content

Fix environment proxy handling for HTTP/2 and HTTP/3#586

Merged
ryanfowler merged 1 commit into
mainfrom
fix-env-proxy-http2-guard
May 26, 2026
Merged

Fix environment proxy handling for HTTP/2 and HTTP/3#586
ryanfowler merged 1 commit into
mainfrom
fix-env-proxy-http2-guard

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Pass the effective HTTP version into proxy configuration so env proxies are guarded the same way as --proxy.
  • Reject matching env proxies for HTTP/2 and HTTP/3 with the existing a proxy can only be used with HTTP/1.1 error.
  • Add coverage for HTTPS_PROXY with --http 2 and --http 3, plus a small unit test for the env NO_PROXY match path.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • cargo test --all-features --test integration -- --test-threads=1

@ryanfowler ryanfowler force-pushed the fix-env-proxy-http2-guard branch from 437f1ae to 46ce5e9 Compare May 25, 2026 23:55
@ryanfowler ryanfowler merged commit a40341f into main May 26, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix-env-proxy-http2-guard branch May 26, 2026 00:01
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