mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-30 03:50:47 -04:00
added http digest auth to download clients
This commit is contained in:
1 parent
9f44e0e33f
commit
c16a6753f4
37 files changed
+5376
-66
No files matched your search
+14
-2
@@ -82,7 +82,16 @@ public class DynamicHttpClientFactory : IDynamicHttpClientFactory
|
||||
RegisterConfiguration(clientName, config);
|
||||
}
|
||||
|
||||
public void RegisterDownloadClient(string clientName, int timeout, HttpClientType clientType, RetryConfig retryConfig, CertificateValidationType certificateType, bool sendUserAgent)
|
||||
public void RegisterDownloadClient(
|
||||
string clientName,
|
||||
int timeout,
|
||||
HttpClientType clientType,
|
||||
RetryConfig retryConfig,
|
||||
CertificateValidationType certificateType,
|
||||
bool sendUserAgent,
|
||||
HttpAuthType httpAuthType = HttpAuthType.Basic,
|
||||
NetworkCredential? httpAuthCredential = null,
|
||||
Uri? baseUri = null)
|
||||
{
|
||||
HttpClientConfig config = new()
|
||||
{
|
||||
@@ -91,7 +100,10 @@ public class DynamicHttpClientFactory : IDynamicHttpClientFactory
|
||||
Type = clientType,
|
||||
RetryConfig = retryConfig,
|
||||
CertificateValidationType = certificateType,
|
||||
SendUserAgent = sendUserAgent
|
||||
SendUserAgent = sendUserAgent,
|
||||
HttpAuthType = httpAuthType,
|
||||
HttpAuthCredential = httpAuthCredential,
|
||||
BaseUri = baseUri,
|
||||
};
|
||||
|
||||
// Configure Deluge-specific settings if needed
|
||||
|
||||
Reference in new issue
Block a user