From 0d8499d53fb2e15cc3288200f574dfd107a3d423 Mon Sep 17 00:00:00 2001 From: Rickard Date: Fri, 8 Sep 2023 13:55:15 +0200 Subject: [PATCH] Update DefaultHttpResponseFormatter.cs --- .../AspNetCore/Serialization/DefaultHttpResponseFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) &&