about summary refs log tree commit diff
path: root/LibMatrix/Extensions
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-17 17:11:37 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-17 17:11:37 +0200
commit0ad13628bb8ef899927b7b42b5357fe616ce057c (patch)
tree8a04032802bdc13d0b9006e024a54b888a2562dc /LibMatrix/Extensions
parentHandle floats etc in requests (diff)
downloadLibMatrix-0ad13628bb8ef899927b7b42b5357fe616ce057c.tar.xz
Add updating of profiles and fetching room profiles
Diffstat (limited to 'LibMatrix/Extensions')
-rw-r--r--LibMatrix/Extensions/HttpClientExtensions.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/LibMatrix/Extensions/HttpClientExtensions.cs b/LibMatrix/Extensions/HttpClientExtensions.cs
index bffd74a..d280ef3 100644
--- a/LibMatrix/Extensions/HttpClientExtensions.cs
+++ b/LibMatrix/Extensions/HttpClientExtensions.cs
@@ -111,6 +111,9 @@ public class MatrixHttpClient : HttpClient {
         options = GetJsonSerializerOptions(options);
         var request = new HttpRequestMessage(HttpMethod.Put, requestUri);
         request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
+        Console.WriteLine($"Sending PUT {requestUri}");
+        Console.WriteLine($"Content: {value.ToJson()}");
+        Console.WriteLine($"Type: {value.GetType().FullName}");
         request.Content = new StringContent(JsonSerializer.Serialize(value, value.GetType(), options),
             Encoding.UTF8, "application/json");
         return await SendAsync(request, cancellationToken);