return a nil CalendarCompRequest when empty#44
return a nil CalendarCompRequest when empty#44kwo wants to merge 1 commit intoemersion:masterfrom kwo:nil-calendar-comp-request
Conversation
|
The idea looks good to me. Maybe we could instead change the |
|
Hmm. Actually, why is |
|
For reference, here's how I've been using This package is in dire need of examples. |
necessary to work with iCloud # Conflicts: # caldav/caldav_test.go # caldav/client.go
That would also work |
Thoughts? |
Hi. I'm trying to use QueryCalendar with iCloud calendars but cannot do it without these changes. If a CalendarCompRequest if not included in a calendar query, it will be initialized as a blank/empty struct. The code now tests if the CalendarCompRequest is empty and if so returns a nil
compso that thecalendarDataReqcan be sent properly without a Comp section.