Repository navigation
Conversation
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1 Reqwest-PR: seanmonstar/reqwest#3140 Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1 Reqwest-PR: seanmonstar/reqwest#3140 Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1 Reqwest-PR: seanmonstar/reqwest#3140 Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1 Reqwest-PR: seanmonstar/reqwest#3140 Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 18, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1 Reqwest-PR: seanmonstar/reqwest#3140 Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 20, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1 Reqwest-PR: seanmonstar/reqwest#3140 Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade
Byron
pushed a commit
to GitoxideLabs/gitoxide
that referenced
this pull request
Nov 24, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author. Retarget Rust crate paths and preserve upstream formatting. Adapt the new redirect-policy test to the proxy-aware constructor here, bringing forward that part of source commit `e41ec35` so this commit builds. Port validation: library, proxy, redirect, blocking, and client tests pass with the stable optional features enabled; external TLS-info tests are excluded. Reqwest-Patch: 315345fdedaef7c75d134b8ee8923da96a578ef1 Reqwest-PR: seanmonstar/reqwest#3140 Original source message: fix(redirect): clear stale Referer on HTTPS downgrade <!-- agent --> Transplanted from seanmonstar/reqwest#3140. Original commit: 49cb173c9ecd39eb0476fc46ae73ebac488e7eef. Compatible with filtered-header carry-forward in tower-http 0.7.1. Proxy-aware policy test adaptation belongs in a separate follow-up. The source patch is preserved; local changes are kept in separate commits. <!-- original message --> fix(redirect): clear stale Referer on HTTPS downgrade
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
An HTTPS → HTTPS → HTTP redirect chain can retain an earlier HTTPS URL in
Referer, including its query parameters, on the final HTTP request. Remove the stale header when automatic referer generation is disallowed by a downgrade.Add an eight-case middleware regression test covering HTTP and HTTPS destinations, existing Referer headers, and
.referer(false). The regression fails before the fix and passes afterward.Validation:
cargo check --lib,cargo fmt -- --check, andgit diff --checkpass.