Skip to content

Conversation

@ManickaP
Copy link
Member

Fixes #114790

Copilot AI review requested due to automatic review settings April 22, 2025 07:41
@ghost ghost added the area-System.Net.Http label Apr 22, 2025
@ManickaP ManickaP requested a review from a team April 22, 2025 07:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the ContentDisposition test on .NET Framework by handling platform-specific differences in the expected file name format.

  • Updates the expected file name to include quotes on .NET Framework
  • Uses preprocessor directives to differentiate behavior between .NET Framework and other targets

Assert.Contains("close", resp.Headers.Connection);
Assert.True(resp.Headers.ConnectionClose.GetValueOrDefault());
Assert.Equal("attachment", resp.Content.Headers.ContentDisposition.DispositionType);
#if NETFRAMEWORK
Copy link

Copilot AI Apr 22, 2025

Choose a reason for hiding this comment

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

Consider adding a comment explaining why the expected FileName value includes quotes on .NET Framework. This will help future maintainers understand the platform-specific behavior.

Copilot uses AI. Check for mistakes.
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failures in System.Net.Http.Functional.Tests.PlatformHandler_HttpClientHandlerTest.GetAsync_ManyDifferentResponseHeaders_ParsedCorrectly

2 participants