Skip to content

Commit

Permalink
Get retry-after header lowercase
Browse files Browse the repository at this point in the history
This is how currently it's being served
  • Loading branch information
glensc committed Jan 8, 2024
1 parent f6992f8 commit 961a95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trakt/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class RateLimitException(TraktException):

@property
def retry_after(self):
return int(self.response.headers.get("Retry-After", 1))
return int(self.response.headers.get("retry-after", 1))

@property
def details(self):
Expand Down

0 comments on commit 961a95d

Please sign in to comment.