mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-02 16:06:15 -04:00
Add orphaned files cleanup (#618)
This commit is contained in:
1 parent
1ca935b62b
commit
8ccd93dc97
98 files changed
+7093
-1266
No files matched your search
+11
@@ -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
|
||||
|
||||
+2
-1
@@ -36,5 +36,6 @@ public enum HttpClientType
|
||||
{
|
||||
Default,
|
||||
WithRetry,
|
||||
Deluge
|
||||
Deluge,
|
||||
UTorrent,
|
||||
}
|
||||
Reference in new issue
Block a user