diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 17:11:37 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 17:11:37 +0200 |
commit | 0ad13628bb8ef899927b7b42b5357fe616ce057c (patch) | |
tree | 8a04032802bdc13d0b9006e024a54b888a2562dc /LibMatrix/Extensions/HttpClientExtensions.cs | |
parent | Handle floats etc in requests (diff) | |
download | LibMatrix-0ad13628bb8ef899927b7b42b5357fe616ce057c.tar.xz |
Add updating of profiles and fetching room profiles
Diffstat (limited to 'LibMatrix/Extensions/HttpClientExtensions.cs')
-rw-r--r-- | LibMatrix/Extensions/HttpClientExtensions.cs | 3 |
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); |