diff options
Diffstat (limited to 'MxApiExtensions/Controllers/GenericProxyController.cs')
-rw-r--r-- | MxApiExtensions/Controllers/GenericProxyController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
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) }); |