mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-29 09:35:50 +00:00
Don't actually follow redirects
This commit is contained in:
parent
b04638246a
commit
2a3b56c179
1 changed files with 3 additions and 2 deletions
|
|
@ -120,8 +120,9 @@ class Discover(object):
|
|||
|
||||
@_catch_generator_exceptions
|
||||
def _find_dav(self):
|
||||
response = self.session.request('GET', self._well_known_uri)
|
||||
yield response.url
|
||||
response = self.session.request('GET', self._well_known_uri,
|
||||
allow_redirects=False)
|
||||
yield response.headers['Location']
|
||||
|
||||
def discover(self):
|
||||
"""discover all the user's CalDAV or CardDAV collections on the server
|
||||
|
|
|
|||
Loading…
Reference in a new issue