set max-resource-size to i64

This commit is contained in:
Lennart
2024-09-29 14:17:32 +02:00
parent e863f994b0
commit ac10ed096a

View File

@@ -72,7 +72,7 @@ pub enum CalendarProp {
)]
SupportedCalendarData(SupportedCalendarData),
Getcontenttype(String),
MaxResourceSize(String),
MaxResourceSize(i64),
CurrentUserPrivilegeSet(UserPrivilegeSet),
SupportedReportSet(SupportedReportSet),
SyncToken(String),
@@ -127,9 +127,7 @@ impl Resource for CalendarResource {
CalendarPropName::Getcontenttype => {
CalendarProp::Getcontenttype("text/calendar;charset=utf-8".to_owned())
}
CalendarPropName::MaxResourceSize => {
CalendarProp::MaxResourceSize("10000000".to_owned())
}
CalendarPropName::MaxResourceSize => CalendarProp::MaxResourceSize(10000000),
CalendarPropName::CurrentUserPrivilegeSet => {
CalendarProp::CurrentUserPrivilegeSet(UserPrivilegeSet::default())
}