diff options
author | Lorenz Diener <[email protected]> | 2017-09-05 16:12:06 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-09-05 16:12:06 +0200 |
commit | 75ffe55cb7f1bb33b6831ab1944e9762c01d6a34 (patch) | |
tree | 9b31326509f7a262434da24a78696e0e1e92b518 | |
parent | badc8aff20aba45060847afc44d8632f4f4e5221 (diff) | |
parent | e3a754acf97f3bca30f4547567edb7359bf18323 (diff) | |
download | mastodon.py-75ffe55cb7f1bb33b6831ab1944e9762c01d6a34.tar.gz |
Merge branch 'master' of https://github.com/halcy/Mastodon.py
-rw-r--r-- | mastodon/Mastodon.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 8aa741a..4012945 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -1083,6 +1083,9 @@ class Mastodon: | |||
1083 | """Internal add-protocol-to-url helper""" | 1083 | """Internal add-protocol-to-url helper""" |
1084 | if not base_url.startswith("http://") and not base_url.startswith("https://"): | 1084 | if not base_url.startswith("http://") and not base_url.startswith("https://"): |
1085 | base_url = "https://" + base_url | 1085 | base_url = "https://" + base_url |
1086 | |||
1087 | # Some API endpoints can't handle extra /'s in path requests | ||
1088 | base_url = base_url.rstrip("/") | ||
1086 | return base_url | 1089 | return base_url |
1087 | 1090 | ||
1088 | ## | 1091 | ## |