SSL cert error

This commit is contained in:
glax 2023-05-24 22:55:32 +02:00
parent e2917d2f2e
commit 08001fd684

View File

@ -89,7 +89,13 @@ public class Komga
{
public static Stream MakeRequest(string url, string auth)
{
HttpClient client = new();
HttpClientHandler clientHandler = new HttpClientHandler();
clientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, sslPolicyErrors) =>
{
return true;
};
HttpClient client = new(clientHandler);
HttpRequestMessage requestMessage = new HttpRequestMessage
{
Method = HttpMethod.Get,