Add orphaned files cleanup (#618)

This commit is contained in:
Flaminel
2026-05-27 19:26:39 +03:00
committed by GitHub
parent 1ca935b62b
commit 8ccd93dc97
98 changed files with 7093 additions and 1266 deletions

View File

@@ -74,6 +74,17 @@ public class DynamicHttpClientConfiguration : IConfigureNamedOptions<HttpClientF
};
break;
case HttpClientType.UTorrent:
// uTorrent's WebUI requires the GUID cookie+token pair set manually by UTorrentHttpService
// UseCookies=false prevents .NET's CookieContainer from injecting a competing Cookie header.
builder.PrimaryHandler = new HttpClientHandler
{
UseCookies = false,
ServerCertificateCustomValidationCallback = (sender, certificate, chain, policy) =>
certValidationService.ShouldByPassValidationError(config.CertificateValidationType, sender, certificate, chain, policy),
};
break;
case HttpClientType.Default:
default:
// Use default handler with certificate validation

View File

@@ -36,5 +36,6 @@ public enum HttpClientType
{
Default,
WithRetry,
Deluge
Deluge,
UTorrent,
}