Repository navigation
Honor disabled redirects in route-aware HTTP clients - #34978
Merged
copyberry[bot] merged 1 commit intoJul 23, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why With system-proxy-aware routing, `RouteAwareClientPool` handles redirects itself so each hop can resolve its own route. That manual path must also respect clients configured not to follow redirects. ## What changed - Add no-redirect constructors for standard and ChatGPT Cloudflare-cookie route-aware client pools. - Skip manual redirect handling when the underlying client builder has redirects disabled, returning the redirect response to the caller. ## Testing - Cover both outbound proxy policies and verify that a no-redirect pool returns the initial `302 Found` response after one request. GitOrigin-RevId: 7eec73f21f506a46e5d4b82f425ddbc9761ca61c
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/7eec73f21f506a46e5d4b82f425ddbc9761ca61c
branch
from
July 23, 2026 17:44
a18239b to
ad65f01
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/7eec73f21f506a46e5d4b82f425ddbc9761ca61c
branch
July 23, 2026 17:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Honor disabled redirects in route-aware HTTP clients
Why
With system-proxy-aware routing,
RouteAwareClientPoolhandles redirects itself so each hop can resolve its own route. That manual path must also respect clients configured not to follow redirects.What changed
Testing
302 Foundresponse after one request.