Skip to content

Commit b3920f7

Browse files
Fix ASP0019: Use indexer instead of Add for IHeaderDictionary in ChunkedServiceTest
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 45d67e8 commit b3920f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dotnet/test/DotNetCoreChunkedTest/ChunkedServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void Configure(IApplicationBuilder app)
7979

8080
app.Run(async context =>
8181
{
82-
context.Response.Headers.Add(HttpHeader.TRANSFER_ENCODING, "chunked");
82+
context.Response.Headers[HttpHeader.TRANSFER_ENCODING] = "chunked";
8383

8484
var responseStream = context.Response.Body;
8585

0 commit comments

Comments
 (0)