Fix incorrect schema issue

This commit is contained in:
2020-08-25 21:16:05 +03:00
parent ebf7574bde
commit e35cf0efa5
4 changed files with 4 additions and 8 deletions

View File

@@ -14,8 +14,8 @@ logging.basicConfig(format="%(asctime)s %(message)s",
class SeafileClient:
def __init__(self, host: str, port: int, user: str, passwd: str):
self.url = f"https://{host}:{port}"
def __init__(self, host: str, user: str, passwd: str):
self.url = requests.get(f"http://{host}").url
self.user = user
self.password = passwd
self.__token = None