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:
Markus Unterwaditzer 2014-03-04 18:27:50 +01:00
parent ee538b5046
commit c7a5a525ce

View file

@ -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