Skip to content

Commit a80dcaf

Browse files
Fix ASP0019 warning (#7107)
Co-authored-by: Michael Staib <[email protected]>
1 parent f6af0c8 commit a80dcaf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/HotChocolate/AzureFunctions/test/HotChocolate.AzureFunctions.Tests/Helpers/TestHttpContextHelper.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ public static HttpContext NewBcpHttpContext()
4747
request.QueryString = new QueryString(uri.Query);
4848

4949
// Ensure we accept Text/Html for BCP requests...
50-
httpContext.Request.Headers.Add(
51-
HeaderNames.Accept,
52-
TestConstants.DefaultBcpContentType);
50+
httpContext.Request.Headers[HeaderNames.Accept] = TestConstants.DefaultBcpContentType;
5351

5452
httpContext.Response.Body = new MemoryStream();
5553

0 commit comments

Comments
 (0)