mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Add TooManyRequestsException with var retryWait
This commit is contained in:
parent
587a73f3d6
commit
ba3a240707
1 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
|
||||
namespace NzbDrone.Common.Http
|
||||
{
|
||||
|
|
@ -25,5 +25,11 @@ public TooManyRequestsException(HttpRequest request, HttpResponse response)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public TooManyRequestsException(HttpRequest request, HttpResponse response, TimeSpan retryWait)
|
||||
: base(request, response)
|
||||
{
|
||||
RetryAfter = retryWait;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue