Some clients expect collections to end with /

Compatibility with InfCloud/CalDavZAP/CardDavMATE
This commit is contained in:
Unrud 2016-08-07 17:07:51 +02:00 committed by Unrud
parent 4236077b04
commit 4f37e90e20

View File

@ -541,7 +541,8 @@ def _propfind_response(path, item, props, user, write=False):
href = ET.Element(_tag("D", "href")) href = ET.Element(_tag("D", "href"))
if is_collection: if is_collection:
uri = item.path # Some clients expect collections to end with /
uri = item.path + "/"
else: else:
# TODO: fix this # TODO: fix this
if path.split("/")[-1] == item.href: if path.split("/")[-1] == item.href: