caldav: set Depth to 1 for calendar-query REPORT requests

SabreDAV chokes on an unset Depth header field.
This commit is contained in:
Simon Ser 2020-05-13 15:06:16 +02:00
parent 4c0dc5d900
commit 5328b4c493
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -208,6 +208,7 @@ func (c *Client) QueryCalendar(calendar string, query *CalendarQuery) ([]Calenda
if err != nil {
return nil, err
}
req.Header.Add("Depth", "1")
ms, err := c.ic.DoMultiStatus(req)
if err != nil {