From dd153df6cbde47c4931b9f0b19f457a50644374a Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 11 Dec 2025 08:47:26 +0100 Subject: [PATCH] add support for max-resource-size using max-content-length --- radicale/app/propfind.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py index 90f94a0d..7daf49e1 100644 --- a/radicale/app/propfind.py +++ b/radicale/app/propfind.py @@ -111,6 +111,7 @@ def xml_propfind_response( props.append(xmlutils.make_clark("D:supported-report-set")) props.append(xmlutils.make_clark("D:resourcetype")) props.append(xmlutils.make_clark("D:owner")) + props.append(xmlutils.make_clark("C:max-resource-size")) if is_collection and collection.is_principal: props.append(xmlutils.make_clark("C:calendar-user-address-set")) @@ -239,6 +240,8 @@ def xml_propfind_response( child_element.text = xmlutils.make_href( base_prefix, "/%s/" % collection.owner) element.append(child_element) + elif tag == xmlutils.make_clark("C:max-resource-size"): + element.text = str(max_content_length) elif is_collection: if tag == xmlutils.make_clark("D:getcontenttype"): if is_leaf: