SSL cert error
This commit is contained in:
parent
e2917d2f2e
commit
08001fd684
@ -89,7 +89,13 @@ public class Komga
|
|||||||
{
|
{
|
||||||
public static Stream MakeRequest(string url, string auth)
|
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
|
HttpRequestMessage requestMessage = new HttpRequestMessage
|
||||||
{
|
{
|
||||||
Method = HttpMethod.Get,
|
Method = HttpMethod.Get,
|
||||||
|
Loading…
Reference in New Issue
Block a user