Per RFC2518#8.1(
http://www.webdav.org/specs/rfc2518.html#METHOD_PROPFIND)
empty propfind requests are allowed.
item_name = paths.resource_from_path(path)
collection_name = paths.collection_from_path(path)
- # Reading request
- root = ET.fromstring(xml_request)
+ if xml_request:
+ # Reading request
+ root = ET.fromstring(xml_request)
+
+ prop_element = root.find(_tag("D", "prop"))
+ else:
+ prop_element = None
- prop_element = root.find(_tag("D", "prop"))
if prop_element is not None:
prop_list = prop_element.getchildren()
props = [prop.tag for prop in prop_list]