From 1ef1d9701e9a6ac07e3678e830bb65ee7904021f Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Thu, 7 Sep 2023 21:55:46 +0200 Subject: [PATCH] Add max-resource-size to calendar --- crates/dav/src/routes/calendar.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/dav/src/routes/calendar.rs b/crates/dav/src/routes/calendar.rs index 3cdf823..941e398 100644 --- a/crates/dav/src/routes/calendar.rs +++ b/crates/dav/src/routes/calendar.rs @@ -119,6 +119,7 @@ pub fn generate_propfind_calendar_response( "calendar-description", "owner", "calendar-color", + "max-resource-size", ] .iter(), ); @@ -197,6 +198,11 @@ pub fn generate_propfind_calendar_response( .create_element("getcontenttype") .write_text_content(BytesText::new("text/calendar"))?; } + "max-resource-size" => { + writer + .create_element("max-resource-size") + .write_text_content(BytesText::new("10000000"))?; + } "allprops" => {} _ => invalid_props.push(prop), };