carddav: add allprop and propname support to query and multiget in server

This commit is contained in:
Simon Ser
2020-01-22 18:59:01 +01:00
parent 0a251a8dfb
commit 7e29f37bd8
2 changed files with 15 additions and 11 deletions

View File

@@ -86,8 +86,9 @@ func (h *Handler) handleQuery(w http.ResponseWriter, query *addressbookQuery) er
for _, ao := range aos {
b := backend{h.Backend}
propfind := internal.Propfind{
Prop: query.Prop,
// TODO: Allprop, Propnames
Prop: query.Prop,
AllProp: query.AllProp,
PropName: query.PropName,
}
resp, err := b.propfindAddressObject(&propfind, &ao)
if err != nil {
@@ -110,8 +111,9 @@ func (h *Handler) handleMultiget(w http.ResponseWriter, multiget *addressbookMul
b := backend{h.Backend}
propfind := internal.Propfind{
Prop: multiget.Prop,
// TODO: Allprop, Propnames
Prop: multiget.Prop,
AllProp: multiget.AllProp,
PropName: multiget.PropName,
}
resp, err := b.propfindAddressObject(&propfind, ao)
if err != nil {