Refactor rate limit parser, fix locale also

This commit is contained in:
Ske
2021-02-08 19:53:06 +01:00
parent 18cf863834
commit 74424edc89
2 changed files with 72 additions and 38 deletions

View File

@@ -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;