We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6af0c8 commit a80dcafCopy full SHA for a80dcaf
src/HotChocolate/AzureFunctions/test/HotChocolate.AzureFunctions.Tests/Helpers/TestHttpContextHelper.cs
@@ -47,9 +47,7 @@ public static HttpContext NewBcpHttpContext()
47
request.QueryString = new QueryString(uri.Query);
48
49
// Ensure we accept Text/Html for BCP requests...
50
- httpContext.Request.Headers.Add(
51
- HeaderNames.Accept,
52
- TestConstants.DefaultBcpContentType);
+ httpContext.Request.Headers[HeaderNames.Accept] = TestConstants.DefaultBcpContentType;
53
54
httpContext.Response.Body = new MemoryStream();
55
0 commit comments