aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 7b75776..1fb7d69 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1177,7 +1177,6 @@ class Mastodon:
1177 # redirection, and then use the domain it gives us to do the final 1177 # redirection, and then use the domain it gives us to do the final
1178 # request. 1178 # request.
1179 if endpoint.startswith("/api/v1/streaming"): 1179 if endpoint.startswith("/api/v1/streaming"):
1180 print("Hi I'm streaming", endpoint)
1181 stream_base = self.api_base_url + "/api/v1/streaming" 1180 stream_base = self.api_base_url + "/api/v1/streaming"
1182 1181
1183 with __no_auth_strip_session() as session: 1182 with __no_auth_strip_session() as session:
@@ -1188,7 +1187,6 @@ class Mastodon:
1188 raise MastodonNetworkError("Could not connect to streaming server: %s" % connection.reason) 1187 raise MastodonNetworkError("Could not connect to streaming server: %s" % connection.reason)
1189 1188
1190 url = connection.url.replace("/api/v1/streaming", endpoint) 1189 url = connection.url.replace("/api/v1/streaming", endpoint)
1191 print("Url redirected:", url)
1192 1190
1193 with __no_auth_strip_session() as session: 1191 with __no_auth_strip_session() as session:
1194 # Prevent stripping of authorisation headers on redirect 1192 # Prevent stripping of authorisation headers on redirect
Powered by cgit v1.2.3 (git 2.41.0)