mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix return type
Fixes: https://github.com/pimutils/vdirsyncer/issues/1036
This commit is contained in:
parent
7c72caef3f
commit
9b48bccde2
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ class Discover:
|
||||||
dav_logger.debug("Trying out well-known URI")
|
dav_logger.debug("Trying out well-known URI")
|
||||||
return await self._find_principal_impl(self._well_known_uri)
|
return await self._find_principal_impl(self._well_known_uri)
|
||||||
|
|
||||||
async def _find_principal_impl(self, url):
|
async def _find_principal_impl(self, url) -> str:
|
||||||
headers = self.session.get_default_headers()
|
headers = self.session.get_default_headers()
|
||||||
headers["Depth"] = "0"
|
headers["Depth"] = "0"
|
||||||
body = b"""
|
body = b"""
|
||||||
|
|
@ -202,7 +202,7 @@ class Discover:
|
||||||
response.url
|
response.url
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return response.url
|
return response.url.human_repr()
|
||||||
return urlparse.urljoin(str(response.url), rv.text).rstrip("/") + "/"
|
return urlparse.urljoin(str(response.url), rv.text).rstrip("/") + "/"
|
||||||
|
|
||||||
async def find_home(self):
|
async def find_home(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue