Skip to content

.NET: fix: do not forward headers on redirect - #8164

Merged
Vincent Biret (baywet) merged 21 commits into
mainfrom
fix/redirection-headers
Sep 10, 2026
Merged

.NET: fix: do not forward headers on redirect#8164
Vincent Biret (baywet) merged 21 commits into
mainfrom
fix/redirection-headers

Conversation

@baywet

@baywet Vincent Biret (baywet) commented Sep 8, 2026

Copy link
Copy Markdown
Member

This prevents forwarding requests headers to subsequent requests on location for 3XX responses and prescribed by RFC 9110

@baywet Vincent Biret (baywet) self-assigned this Sep 8, 2026
Copilot AI balanced review requested due to automatic review settings September 8, 2026 18:28
@agent-framework-automation agent-framework-automation Bot added .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels Sep 8, 2026
@github-actions github-actions Bot changed the title fix: do not forward headers on redirect .NET: fix: do not forward headers on redirect Sep 8, 2026

This comment was marked as outdated.

github-actions[bot]

This comment was marked as outdated.

@github-code-quality

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
github-actions[bot]

This comment was marked as outdated.

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>

This comment was marked as outdated.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
… IDisposable'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are well-covered by targeted unit tests and the only noted issue is a minor exception paramName clarity improvement.

Review details

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/DefaultHttpRequestHandler.cs:279

  • The thrown ArgumentException uses paramName "requestUri", which is an internal helper parameter and not meaningful to callers of SendAsync. Using the public-facing property name (Url) makes the exception easier to understand and act on.
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants