mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 03:00:13 +00:00
Refactor rate limit parser, fix locale also
This commit is contained in:
parent
18cf863834
commit
74424edc89
2 changed files with 72 additions and 38 deletions
|
|
@ -37,7 +37,7 @@ namespace Myriad.Rest.Ratelimit
|
|||
var response = await action(context, ct).ConfigureAwait(continueOnCapturedContext);
|
||||
|
||||
// Update rate limit state with headers
|
||||
var headers = new RatelimitHeaders(response);
|
||||
var headers = RatelimitHeaders.Parse(response);
|
||||
_ratelimiter.HandleResponse(headers, endpoint, major);
|
||||
|
||||
return response;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue