mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 08:16:05 -07:00
Fixed telegram !wip
This commit is contained in:
parent
e526c1071a
commit
dca5d13826
6 changed files with 23 additions and 16 deletions
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using System.Security.Authentication;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
|
@ -36,7 +37,7 @@ namespace Ombi.Api
|
|||
{
|
||||
return new HttpClientHandler
|
||||
{
|
||||
ServerCertificateCustomValidationCallback = (message, certificate2, arg3, arg4) => true
|
||||
ServerCertificateCustomValidationCallback = (message, certificate2, arg3, arg4) => true,
|
||||
};
|
||||
}
|
||||
return new HttpClientHandler();
|
||||
|
@ -49,9 +50,9 @@ namespace Ombi.Api
|
|||
|
||||
public async Task<T> Request<T>(Request request)
|
||||
{
|
||||
using (var httpClient = new HttpClient(await GetHandler()))
|
||||
using(var handler = await GetHandler())
|
||||
using (var httpClient = new HttpClient(handler))
|
||||
{
|
||||
|
||||
using (var httpRequestMessage = new HttpRequestMessage(request.HttpMethod, request.FullUri))
|
||||
{
|
||||
// Add the Json Body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue