summary refs log tree commit diff
path: root/testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-03 23:38:36 +0200
committerRory& <root@rory.gay>2025-06-03 23:38:50 +0200
commit7ed1b77457f5e41ec5f7ba8e102f13f69380608d (patch)
tree22cbb57a43dfae7cc4458c1e13b3b5ae20595815 /testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs
parentPrepare for budgeting, move to native createdAt (diff)
downloadnodejs-final-assignment-7ed1b77457f5e41ec5f7ba8e102f13f69380608d.tar.xz
Implement budget handling
Diffstat (limited to 'testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs')
-rw-r--r--testFrontend/SafeNSound.Sdk/WrappedHttpClient.cs4
1 files changed, 2 insertions, 2 deletions
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<HttpResponseMessage> PatchAsJsonAsync<T>(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); }