From cb719c315e225ba97e32b2dca7d9b184755234cc Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 27 Oct 2023 14:21:15 +0200 Subject: Update --- MxApiExtensions/Controllers/GenericProxyController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MxApiExtensions/Controllers/GenericProxyController.cs') diff --git a/MxApiExtensions/Controllers/GenericProxyController.cs b/MxApiExtensions/Controllers/GenericProxyController.cs index 3481914..c004fcb 100644 --- a/MxApiExtensions/Controllers/GenericProxyController.cs +++ b/MxApiExtensions/Controllers/GenericProxyController.cs @@ -37,7 +37,7 @@ public class GenericController : ControllerBase { .Replace($"access_token={access_token}", "") ); - var resp = await hs._httpClient.GetAsync($"{Request.Path}{Request.QueryString}"); + var resp = await hs.ClientHttpClient.GetAsync($"{Request.Path}{Request.QueryString}"); if (resp.Content is null) { throw new MxApiMatrixException { @@ -91,7 +91,7 @@ public class GenericController : ControllerBase { .Replace($"access_token={access_token}", "") ); - var resp = await hs._httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Post, $"{Request.Path}{Request.QueryString}") { + var resp = await hs.ClientHttpClient.SendAsync(new HttpRequestMessage(HttpMethod.Post, $"{Request.Path}{Request.QueryString}") { Method = HttpMethod.Post, Content = new StreamContent(Request.Body) }); @@ -148,7 +148,7 @@ public class GenericController : ControllerBase { .Replace($"access_token={access_token}", "") ); - var resp = await hs._httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Put, $"{Request.Path}{Request.QueryString}") { + var resp = await hs.ClientHttpClient.SendAsync(new HttpRequestMessage(HttpMethod.Put, $"{Request.Path}{Request.QueryString}") { Method = HttpMethod.Put, Content = new StreamContent(Request.Body) }); -- cgit 1.5.1