PutCalendarObject and PutAddressObject sent no conditional request headers, so a client could not perform an optimistic-concurrency write (overwrite only if the resource still carries an expected ETag). Add an options parameter to both, reusing the existing server-side PutCalendarObjectOptions / PutAddressObjectOptions types so the client and Backend interface mirror each other. A nil opts preserves the prior unconditional behaviour; a non-nil opts sets If-Match / If-None-Match. Signed-off-by: Henry Stern <henry@stern.ca> Assisted-by: Claude Opus 4.8 <noreply@anthropic.com> Closes: https://github.com/emersion/go-webdav/issues/130
Languages
Go
100%