Merge branch 'develop' into master

This commit is contained in:
Evgeny Ezhov 2019-10-13 17:51:19 +03:00 committed by GitHub
commit c606ae3875
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 161 additions and 104 deletions

View file

@ -959,6 +959,8 @@ class WebDavXmlUtils:
:return: XML object of response for the remote resource defined by path.
"""
try:
if isinstance(content, str):
content = content.encode('utf-8')
tree = etree.fromstring(content)
responses = tree.findall("{DAV:}response")