mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Add trailing slash on discovery (#600)
This commit is contained in:
parent
a217623e8e
commit
ceb6296669
1 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ class Discover(object):
|
||||||
'No current-user-principal returned, re-using URL {}'
|
'No current-user-principal returned, re-using URL {}'
|
||||||
.format(response.url))
|
.format(response.url))
|
||||||
return response.url
|
return response.url
|
||||||
return urlparse.urljoin(response.url, rv.text)
|
return urlparse.urljoin(response.url, rv.text).rstrip('/') + '/'
|
||||||
|
|
||||||
def find_home(self):
|
def find_home(self):
|
||||||
url = self.find_principal()
|
url = self.find_principal()
|
||||||
|
|
@ -180,7 +180,7 @@ class Discover(object):
|
||||||
rv = root.find('.//' + self._homeset_tag + '/{DAV:}href')
|
rv = root.find('.//' + self._homeset_tag + '/{DAV:}href')
|
||||||
if rv is None:
|
if rv is None:
|
||||||
raise InvalidXMLResponse('Couldn\'t find home-set.')
|
raise InvalidXMLResponse('Couldn\'t find home-set.')
|
||||||
return urlparse.urljoin(response.url, rv.text)
|
return urlparse.urljoin(response.url, rv.text).rstrip('/') + '/'
|
||||||
|
|
||||||
def find_collections(self):
|
def find_collections(self):
|
||||||
rv = None
|
rv = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue