mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 04:42:15 +00:00
Add max-resource-size to calendar
This commit is contained in:
@@ -119,6 +119,7 @@ pub fn generate_propfind_calendar_response(
|
|||||||
"calendar-description",
|
"calendar-description",
|
||||||
"owner",
|
"owner",
|
||||||
"calendar-color",
|
"calendar-color",
|
||||||
|
"max-resource-size",
|
||||||
]
|
]
|
||||||
.iter(),
|
.iter(),
|
||||||
);
|
);
|
||||||
@@ -197,6 +198,11 @@ pub fn generate_propfind_calendar_response(
|
|||||||
.create_element("getcontenttype")
|
.create_element("getcontenttype")
|
||||||
.write_text_content(BytesText::new("text/calendar"))?;
|
.write_text_content(BytesText::new("text/calendar"))?;
|
||||||
}
|
}
|
||||||
|
"max-resource-size" => {
|
||||||
|
writer
|
||||||
|
.create_element("max-resource-size")
|
||||||
|
.write_text_content(BytesText::new("10000000"))?;
|
||||||
|
}
|
||||||
"allprops" => {}
|
"allprops" => {}
|
||||||
_ => invalid_props.push(prop),
|
_ => invalid_props.push(prop),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user