mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 09:09:42 +02:00
Fixed: (HttpClient) Increase cookie limit per domain to 100
This commit is contained in:
@@ -193,9 +193,16 @@ namespace NzbDrone.Common.Http
|
||||
{
|
||||
lock (_cookieContainerCache)
|
||||
{
|
||||
var sourceContainer = new CookieContainer();
|
||||
var sourceContainer = new CookieContainer
|
||||
{
|
||||
PerDomainCapacity = 100
|
||||
};
|
||||
|
||||
var presistentContainer = _cookieContainerCache.Get("container", () => new CookieContainer
|
||||
{
|
||||
PerDomainCapacity = 100
|
||||
});
|
||||
|
||||
var presistentContainer = _cookieContainerCache.Get("container", () => new CookieContainer());
|
||||
var persistentCookies = presistentContainer.GetCookies((Uri)request.Url);
|
||||
sourceContainer.Add(persistentCookies);
|
||||
|
||||
@@ -243,7 +250,10 @@ namespace NzbDrone.Common.Http
|
||||
|
||||
private CookieContainer HandleRedirectCookies(HttpRequest request, HttpResponse response)
|
||||
{
|
||||
var sourceContainer = new CookieContainer();
|
||||
var sourceContainer = new CookieContainer
|
||||
{
|
||||
PerDomainCapacity = 100
|
||||
};
|
||||
var responseCookies = response.GetCookies();
|
||||
if (responseCookies.Count != 0)
|
||||
{
|
||||
@@ -300,7 +310,10 @@ namespace NzbDrone.Common.Http
|
||||
{
|
||||
lock (_cookieContainerCache)
|
||||
{
|
||||
var persistentCookieContainer = _cookieContainerCache.Get("container", () => new CookieContainer());
|
||||
var persistentCookieContainer = _cookieContainerCache.Get("container", () => new CookieContainer
|
||||
{
|
||||
PerDomainCapacity = 100
|
||||
});
|
||||
|
||||
AddCookiesToContainer(response.Request.Url, cookieHeaders, persistentCookieContainer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user