notroj / neon

neon - an HTTP/1.1 and WebDAV client library with a C API
https://notroj.github.io/neon/
130 stars 33 forks source link

Add support for the RFC 4918 "DAV:lockroot" element in lock discovery: #124

Closed notroj closed 11 months ago

notroj commented 11 months ago
* src/ne_locks.c (end_element_common, can_accept): Support lockroot element.
  (common_cdata, ld_cdata, lk_cdata): Use common cdata collector.

* src/ne_locks.h (ne_lock_result): Clarify that the returned lock may have a different URI to the discovery URI.

* test/lock.c: Add checks for returned lock URI throughout.