lambdabaa / dav

WebDAV, CalDAV, and CardDAV client for nodejs and the browser.
Mozilla Public License 2.0
304 stars 71 forks source link

options.loadObjects dependent depth (verification advisable) #139

Open Apehaenger opened 5 years ago

Apehaenger commented 5 years ago

I tried to get a quick retrieve of the available address books via dav.createAccount({accountType : 'carddav', loadCollections: true, loadObjects: false}), but it wasn't "quick"! After some debugging I recognized that I also retrieved a list of all contacts (some hundreds), beside the expected address books. I'm not very familiar with WebDAV and also not an RFC extraterrestrial, but after some reading I interpreted the specs in that way that I only have to expect the contacts when loadObject = true. This is what this fix does and now the address book query is quick.