mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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
|
@_catch_generator_exceptions
|
||||||
def _find_dav(self):
|
def _find_dav(self):
|
||||||
response = self.session.request('GET', self._well_known_uri)
|
response = self.session.request('GET', self._well_known_uri,
|
||||||
yield response.url
|
allow_redirects=False)
|
||||||
|
yield response.headers['Location']
|
||||||
|
|
||||||
def discover(self):
|
def discover(self):
|
||||||
"""discover all the user's CalDAV or CardDAV collections on the server
|
"""discover all the user's CalDAV or CardDAV collections on the server
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue