mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix DavStorage._requests
A path of '' would cause the thing to request / of the server, which might not even be a DAV server. This was already done in the testsuite.
This commit is contained in:
parent
ee538b5046
commit
c7a5a525ce
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ class DavStorage(Storage):
|
|||
}
|
||||
|
||||
def _request(self, method, path, data=None, headers=None):
|
||||
path = path or self.parsed_url.path
|
||||
if self._session is None:
|
||||
self._session = requests.session()
|
||||
url = self.parsed_url.scheme + '://' + self.parsed_url.netloc + path
|
||||
|
|
|
|||
Loading…
Reference in a new issue