Skip to content

Commit

Permalink
Update DefaultHttpResponseFormatter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rickardp authored Sep 8, 2023
1 parent a9cb6f6 commit 0d8499d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public async ValueTask FormatAsync(
#if NET6_0_OR_GREATER
response.Headers.CacheControl = cacheControlHeaderValue;
#else
response.Headers[HttpHeaderKeys.CacheControl] = cacheControlHeaderValue;
response.Headers[HttpHeaderKeys.CacheControl] = cacheControlHeaderValue;
#endif
}
if (result.ContextData.TryGetValue(VaryHeaderValue, out var varyValue) &&
Expand Down

0 comments on commit 0d8499d

Please sign in to comment.