diff options
author | fwaggle <[email protected]> | 2022-11-05 14:52:06 +1100 |
---|---|---|
committer | fwaggle <[email protected]> | 2022-11-05 14:52:06 +1100 |
commit | b69e998cebcf60052a0ccfa76bce073f9817df65 (patch) | |
tree | 6a9df739482575cba866bf4bbd0c4041fe0cc5ab /tests/cassettes_pre_2_9_2 | |
parent | 89a6bd2baca4e651440402773393c19f74ee0993 (diff) | |
download | mastodon.py-b69e998cebcf60052a0ccfa76bce073f9817df65.tar.gz |
Handle UNIX Epoch times in X-RateLimit-Reset
Instead of returning an ISO8601 timestamp, gotosocial returns an integer
UNIX Epoch for the X-RateLimit-Reset header. As `dateutil.parser.parse`
doesn't handle these, I do a naive check to see if the header is an integer
and don't parse it if so.
Fixes #246
Diffstat (limited to 'tests/cassettes_pre_2_9_2')
0 files changed, 0 insertions, 0 deletions