Skip to content

Commit

Permalink
caldav: set Depth to 1 for calendar-query REPORT requests
Browse files Browse the repository at this point in the history
SabreDAV chokes on an unset Depth header field.
  • Loading branch information
emersion committed May 13, 2020
1 parent 4c0dc5d commit 5328b4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caldav/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5328b4c

Please sign in to comment.