diff --git a/Ktisis.Common/Models/GoogleCloud/Tasks/CloudTaskHttpRequest.cs b/Ktisis.Common/Models/GoogleCloud/Tasks/CloudTaskHttpRequest.cs index ac0de3b..6d72845 100644 --- a/Ktisis.Common/Models/GoogleCloud/Tasks/CloudTaskHttpRequest.cs +++ b/Ktisis.Common/Models/GoogleCloud/Tasks/CloudTaskHttpRequest.cs @@ -5,7 +5,11 @@ namespace Ktisis.Common.Models.GoogleCloud.Tasks; public class CloudTaskHttpRequest { public required string Url { get; init; } + + // `const` doesn't work well with (de)serialization + // ReSharper disable once ConvertToConstant.Global public readonly string HttpMethod = "POST"; + public readonly ReadOnlyDictionary Headers = new Dictionary { { "Content-Type", "application/json" },