carddav: add max-resource-size to serve

This commit is contained in:
Simon Ser
2020-01-19 15:06:09 +01:00
parent 238e72b73e
commit 6bac674701
3 changed files with 19 additions and 4 deletions

View File

@@ -219,7 +219,13 @@ func (b *backend) propfindAddressBook(propfind *internal.Propfind, ab *AddressBo
},
}, nil
},
// TODO: addressbook-max-resource-size, addressbook-home-set
// TODO: addressbook-home-set
}
if ab.MaxResourceSize > 0 {
props[maxResourceSizeName] = func(*internal.RawXMLValue) (interface{}, error) {
return &maxResourceSize{Size: ab.MaxResourceSize}, nil
}
}
return internal.NewPropfindResponse("/", propfind, props)