Update dotnet/aspire-integration/Aspire.Hosting.AgentFramework.DevUI/DevUIAggregatorHostedService.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Tommaso Stocchi
2026-02-10 14:11:31 +01:00
committed by GitHub
Unverified
parent b192b394a2
commit 78e3ad6af4
@@ -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)