mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
Add missing slash to relative urls
This commit is contained in:
parent
a365147a19
commit
8e4342b818
@ -10,7 +10,7 @@ DEFAULT_INSTANCE = 'mastodon.social'
|
|||||||
|
|
||||||
|
|
||||||
def create_app(base_url):
|
def create_app(base_url):
|
||||||
url = base_url + 'api/v1/apps'
|
url = base_url + '/api/v1/apps'
|
||||||
|
|
||||||
response = requests.post(url, {
|
response = requests.post(url, {
|
||||||
'client_name': 'toot',
|
'client_name': 'toot',
|
||||||
@ -29,7 +29,7 @@ def create_app(base_url):
|
|||||||
|
|
||||||
|
|
||||||
def login(app, username, password):
|
def login(app, username, password):
|
||||||
url = app.base_url + 'oauth/token'
|
url = app.base_url + '/oauth/token'
|
||||||
|
|
||||||
response = requests.post(url, {
|
response = requests.post(url, {
|
||||||
'grant_type': 'password',
|
'grant_type': 'password',
|
||||||
|
Loading…
Reference in New Issue
Block a user