aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElizabeth Myers <[email protected]>2017-09-16 10:01:15 -0500
committerElizabeth Myers <[email protected]>2017-09-16 10:05:44 -0500
commit6067aa460478f8cdc9cb1917f10cc0214a92f009 (patch)
treeb92e3b28f1a6956b85a072e4ab56c049f9ee1af9 /tests
parent99249d153b355c99adf607afccf4d087bdbe522d (diff)
downloadmastodon.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 'tests')
0 files changed, 0 insertions, 0 deletions
Powered by cgit v1.2.3 (git 2.41.0)