mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix a bug in DAV discovery
Server might return relative URLs (iCloud does)
This commit is contained in:
parent
48d0631c3d
commit
2be78545fd
1 changed files with 3 additions and 2 deletions
|
|
@ -90,8 +90,9 @@ class Discover(object):
|
|||
for principal in itertools.chain(self._find_principal(), ['']):
|
||||
for home in itertools.chain(self._find_home(principal), ['']):
|
||||
for collection in self._find_collections(home):
|
||||
href = utils.urlparse.urljoin(self.session.url,
|
||||
collection['href'])
|
||||
collection['href'] = href = \
|
||||
utils.urlparse.urljoin(self.session.url,
|
||||
collection['href'])
|
||||
if href not in done:
|
||||
done.add(href)
|
||||
yield collection
|
||||
|
|
|
|||
Loading…
Reference in a new issue