mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-04 01:44:17 +02:00
safe Useragent as string and export settings after changing
This commit is contained in:
@ -14,7 +14,7 @@ internal class HttpDownloadClient : DownloadClient
|
||||
|
||||
public HttpDownloadClient(GlobalBase clone, Dictionary<byte, int> rateLimitRequestsPerMinute) : base(clone, rateLimitRequestsPerMinute)
|
||||
{
|
||||
Client.DefaultRequestHeaders.UserAgent.Add(settings.userAgent);
|
||||
Client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", settings.userAgent);
|
||||
}
|
||||
|
||||
protected override RequestResult MakeRequestInternal(string url, string? referrer = null, string? clickButton = null)
|
||||
|
Reference in New Issue
Block a user