Add missing slash to relative urls - toot - Unnamed repository; edit this file … | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 8e4342b818170963fa4e217d6242b61a75494302 | |
parent a365147a191f6cc6d037d19184b4451c4406d394 | |
Author: Ivan Habunek <[email protected]> | |
Date: Wed, 12 Apr 2017 17:03:04 +0200 | |
Add missing slash to relative urls | |
Diffstat: | |
toot/__init__.py | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/toot/__init__.py b/toot/__init__.py | |
@@ -10,7 +10,7 @@ DEFAULT_INSTANCE = 'mastodon.social' | |
def create_app(base_url): | |
- url = base_url + 'api/v1/apps' | |
+ url = base_url + '/api/v1/apps' | |
response = requests.post(url, { | |
'client_name': 'toot', | |
@@ -29,7 +29,7 @@ def create_app(base_url): | |
def login(app, username, password): | |
- url = app.base_url + 'oauth/token' | |
+ url = app.base_url + '/oauth/token' | |
response = requests.post(url, { | |
'grant_type': 'password', |