Branch: Tag:

2018-03-27

2018-03-27 15:14:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>

WebDAV: Changed API for find_locks().

Instead of returning a multiset(DAVLock) it now returns
a mapping(string:DAVLock), where the mapping is indexed
on locktoken.

311:    return get_response_headers()["Last-Modified"];       case "DAV:lockdiscovery": // RFC2518 13.8 -  return indices(id->conf->find_locks(abs_path, 0, 0, id))->get_xml(); +  return values(id->conf->find_locks(abs_path, 0, 0, id))->get_xml();       case "DAV:resourcetype": // RFC2518 13.9    if ((get_stat()||([]))->isdir) {