From 78e3ad6af4a88cb7aff8dfcc200f8d42a73b1ace Mon Sep 17 00:00:00 2001 From: Tommaso Stocchi Date: Tue, 10 Feb 2026 14:11:31 +0100 Subject: [PATCH] Update dotnet/aspire-integration/Aspire.Hosting.AgentFramework.DevUI/DevUIAggregatorHostedService.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../DevUIAggregatorHostedService.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dotnet/aspire-integration/Aspire.Hosting.AgentFramework.DevUI/DevUIAggregatorHostedService.cs b/dotnet/aspire-integration/Aspire.Hosting.AgentFramework.DevUI/DevUIAggregatorHostedService.cs index ed2fa7c18d..1e59e9fdba 100644 --- a/dotnet/aspire-integration/Aspire.Hosting.AgentFramework.DevUI/DevUIAggregatorHostedService.cs +++ b/dotnet/aspire-integration/Aspire.Hosting.AgentFramework.DevUI/DevUIAggregatorHostedService.cs @@ -631,12 +631,9 @@ internal sealed class DevUIAggregatorHostedService : IAsyncDisposable { context.Response.StatusCode = (int)response.StatusCode; - foreach (var header in response.Headers) + foreach (var header in response.Headers.Where(h => !IsHopByHopHeader(h.Key))) { - if (!IsHopByHopHeader(header.Key)) - { - context.Response.Headers[header.Key] = header.Value.ToArray(); - } + context.Response.Headers[header.Key] = header.Value.ToArray(); } foreach (var header in response.Content.Headers)