Mastodonplus.py/mastodon
Elizabeth Myers 6067aa4604 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
2017-09-16 10:05:44 -05:00
..
__init__.py Initial implementation of streaming API 2017-04-10 08:18:08 +01:00
Mastodon.py Workaround Mastodon issue with streaming API redirection 2017-09-16 10:05:44 -05:00
streaming.py not pep8 compliant #71 2017-09-05 22:59:32 +02:00