From 6e3b277ff54a00e048747801734c7d3767c3227e Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 11 Dec 2025 08:59:44 +0100 Subject: [PATCH] reduce to 80% for base64 coverage --- radicale/app/propfind.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py index 7daf49e1..4d985429 100644 --- a/radicale/app/propfind.py +++ b/radicale/app/propfind.py @@ -241,7 +241,8 @@ def xml_propfind_response( base_prefix, "/%s/" % collection.owner) element.append(child_element) elif tag == xmlutils.make_clark("C:max-resource-size"): - element.text = str(max_content_length) + # RFC4791#5.2.5 use 80% of max_content_length to cover base64 encoding + element.text = str(int(max_content_length * 0.8)) elif is_collection: if tag == xmlutils.make_clark("D:getcontenttype"): if is_leaf: