From 7ed1b77457f5e41ec5f7ba8e102f13f69380608d Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 3 Jun 2025 23:38:36 +0200 Subject: Implement budget handling --- testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs') diff --git a/testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs b/testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs index aa785cd..49bd212 100644 --- a/testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs +++ b/testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs @@ -337,7 +337,7 @@ public class WrappedHttpClient { var request = new HttpRequestMessage(HttpMethod.Delete, url) { - Content = new StringContent(JsonSerializer.Serialize(payload), Encoding.UTF8, "application/json") + Content = new StringContent(JsonSerializer.Serialize(payload, GetJsonSerializerOptions()), Encoding.UTF8, "application/json") }; return await SendAsync(request); } @@ -345,7 +345,7 @@ public class WrappedHttpClient public async Task PatchAsJsonAsync(string url, T payload) { var request = new HttpRequestMessage(HttpMethod.Patch, url) { - Content = new StringContent(JsonSerializer.Serialize(payload), Encoding.UTF8, "application/json") + Content = new StringContent(JsonSerializer.Serialize(payload, GetJsonSerializerOptions()), Encoding.UTF8, "application/json") }; return await SendAsync(request); } -- cgit 1.5.1