Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WinHTTP] Fix ContentDisposition test on FW #114892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged

Conversation

ManickaP
Copy link
Member

Fixes #114790

@Copilot Copilot AI review requested due to automatic review settings April 22, 2025 07:41
@ManickaP ManickaP requested a review from a team April 22, 2025 07:41
Copy link
Contributor

@Copilot 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

@@ -646,7 +646,11 @@ await LoopbackServer.CreateClientAndServerAsync(async uri =>
Assert.Contains("close", resp.Headers.Connection);
Assert.True(resp.Headers.ConnectionClose.GetValueOrDefault());
Assert.Equal("attachment", resp.Content.Headers.ContentDisposition.DispositionType);
#if NETFRAMEWORK
Copy link
Preview

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.

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants