normalize api to end with /
This commit is contained in:
parent
8675edf19f
commit
75b12dfb86
1 changed files with 2 additions and 0 deletions
|
@ -227,6 +227,8 @@ def signin(url):
|
||||||
url = 'https://%s/api/' % url
|
url = 'https://%s/api/' % url
|
||||||
else:
|
else:
|
||||||
site = url.split('/')[2]
|
site = url.split('/')[2]
|
||||||
|
if not url.endswith('/'):
|
||||||
|
url += '/'
|
||||||
api = API(url)
|
api = API(url)
|
||||||
update = False
|
update = False
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue