diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/DefaultHttpResponseFormatter.cs b/src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/DefaultHttpResponseFormatter.cs index a1c898fd2e3..3f99ffee694 100644 --- a/src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/DefaultHttpResponseFormatter.cs +++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/DefaultHttpResponseFormatter.cs @@ -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) &&