Skip to content

Commit

Permalink
fix: Invert filter
Browse files Browse the repository at this point in the history
  • Loading branch information
MH321Productions committed Mar 4, 2025
1 parent 2863581 commit 2c579a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public override async Task OnResultExecutionAsync(ResultExecutingContext context
{
response.StatusCode = StatusCodes.Status304NotModified;

foreach (var header in response.Headers.Where(h => HEADERS_TO_KEEP_FOR304.Contains(h.Key)))
foreach (var header in response.Headers.Where(h => !HEADERS_TO_KEEP_FOR304.Contains(h.Key)))
response.Headers.Remove(header.Key);

return;
Expand Down

0 comments on commit 2c579a4

Please sign in to comment.