carddav: fix server appearing as read-only in Evolution

This commit is contained in:
Simon Ser 2020-01-30 00:43:23 +01:00
parent 8937358ac1
commit feea39c898
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -218,7 +218,9 @@ func (b *backend) Options(r *http.Request) (caps []string, allow []string, err e
caps = []string{"addressbook"} caps = []string{"addressbook"}
if r.URL.Path == "/" { if r.URL.Path == "/" {
return caps, []string{http.MethodOptions, "PROPFIND", "REPORT"}, nil // Note: some clients assume the address book is read-only when
// DELETE/MKCOL are missing
return caps, []string{http.MethodOptions, "PROPFIND", "REPORT", "DELETE", "MKCOL"}, nil
} }
var dataReq AddressDataRequest var dataReq AddressDataRequest