Skip to content

Commit

Permalink
Fix build warning ASP0019, produced by ASP.NET Core 8
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoelman committed Jun 14, 2023
1 parent 210b0dd commit c0eb108
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private bool SetETagResponseHeader(HttpRequest request, HttpResponse response, s
string url = request.GetEncodedUrl();
EntityTagHeaderValue responseETag = _eTagGenerator.Generate(url, responseContent);

response.Headers.Add(HeaderNames.ETag, responseETag.ToString());
response.Headers.Append(HeaderNames.ETag, responseETag.ToString());

return RequestContainsMatchingETag(request.Headers, responseETag);
}
Expand Down

0 comments on commit c0eb108

Please sign in to comment.