mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-29 21:49:13 +02:00
core: fix parsing Retry-After header in TooManyRequestsException
This commit is contained in:
@@ -453,7 +453,9 @@ namespace Jackett.Server.Controllers
|
||||
var retryAfter = Convert.ToInt32(tooManyRequestsException.RetryAfter.TotalSeconds);
|
||||
|
||||
if (retryAfter > 0)
|
||||
{
|
||||
HttpContext.Response.Headers.Add("Retry-After", $"{retryAfter}");
|
||||
}
|
||||
}
|
||||
|
||||
return GetErrorXML(900, ex.Message, StatusCodes.Status429TooManyRequests);
|
||||
|
Reference in New Issue
Block a user