diff options
author | Elizabeth Myers <[email protected]> | 2017-09-16 10:01:15 -0500 |
---|---|---|
committer | Elizabeth Myers <[email protected]> | 2017-09-16 10:05:44 -0500 |
commit | 6067aa460478f8cdc9cb1917f10cc0214a92f009 (patch) | |
tree | b92e3b28f1a6956b85a072e4ab56c049f9ee1af9 /access.credentials | |
parent | 99249d153b355c99adf607afccf4d087bdbe522d (diff) | |
download | mastodon.py-6067aa460478f8cdc9cb1917f10cc0214a92f009.tar.gz |
Workaround Mastodon issue with streaming API redirection
Mastodon can be configured to use another address for streaming
server-side. Such a setup is common with certain deployments.
However, due to a bug, Mastodon does not properly issue HTTP redirects
for anything but the endpoint /api/v1/streaming (including subdirs). It
instead gives a 404, causing the request to fail.
The workaround is to hit this path first, checking for any redirects,
and modifying the URL accordingly.
This commit also includes a workaround for behaviour in requests that
causes it to strip the Authorization header from redirected requests.
This is intentional behaviour on the part of requests, but breaks the
redirection done by Mastodon.
Fixes #84
Diffstat (limited to 'access.credentials')
0 files changed, 0 insertions, 0 deletions