Fix empty REPORT requests

This commit is contained in:
Unrud 2017-06-07 14:13:12 +02:00
parent b30c1d11e5
commit 217859bf5e

View File

@ -997,7 +997,7 @@ def report(base_prefix, path, xml_request, collection):
"""
multistatus = ET.Element(_tag("D", "multistatus"))
if xml_request is None:
return multistatus
return client.MULTI_STATUS, multistatus
root = xml_request
if root.tag in (
_tag("D", "principal-search-property-set"),