mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
carddav: fix server appearing as read-only in Evolution
This commit is contained in:
parent
8937358ac1
commit
feea39c898
@ -218,7 +218,9 @@ func (b *backend) Options(r *http.Request) (caps []string, allow []string, err e
|
||||
caps = []string{"addressbook"}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user