Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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

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.
Assert.Equal("\"fname.ext\"", resp.Content.Headers.ContentDisposition.FileName);
#else
Assert.Equal("fname.ext", resp.Content.Headers.ContentDisposition.FileName);
#endif
Assert.Contains("gzip", resp.Content.Headers.ContentEncoding);
Assert.Contains("da", resp.Content.Headers.ContentLanguage);
Assert.Equal(new Uri("/index.htm", UriKind.Relative), resp.Content.Headers.ContentLocation);
Expand Down
Loading