aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfwaggle <[email protected]>2022-11-05 14:52:06 +1100
committerfwaggle <[email protected]>2022-11-05 14:52:06 +1100
commitb69e998cebcf60052a0ccfa76bce073f9817df65 (patch)
tree6a9df739482575cba866bf4bbd0c4041fe0cc5ab /tests/amewatson.jpg
parent89a6bd2baca4e651440402773393c19f74ee0993 (diff)
downloadmastodon.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/amewatson.jpg')
0 files changed, 0 insertions, 0 deletions
Powered by cgit v1.2.3 (git 2.41.0)