diff options
Diffstat (limited to 'aero-dav/src')
-rw-r--r-- | aero-dav/src/caldecoder.rs | 4 | ||||
-rw-r--r-- | aero-dav/src/xml.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/aero-dav/src/caldecoder.rs b/aero-dav/src/caldecoder.rs index f92cf09..008668e 100644 --- a/aero-dav/src/caldecoder.rs +++ b/aero-dav/src/caldecoder.rs @@ -69,7 +69,7 @@ impl<E: dav::Extension> QRead<CalendarQuery<E>> for CalendarQuery<E> { impl<E: dav::Extension> QRead<CalendarMultiget<E>> for CalendarMultiget<E> { async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> { - xml.open(CAL_URN, "free-busy-query").await?; + xml.open(CAL_URN, "calendar-multiget").await?; let mut selector = None; let mut href = Vec::new(); @@ -93,7 +93,7 @@ impl<E: dav::Extension> QRead<CalendarMultiget<E>> for CalendarMultiget<E> { impl QRead<FreeBusyQuery> for FreeBusyQuery { async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> { - xml.open(CAL_URN, "calendar-multiple-get").await?; + xml.open(CAL_URN, "free-busy-query").await?; let range = xml.find().await?; xml.close().await?; Ok(FreeBusyQuery(range)) diff --git a/aero-dav/src/xml.rs b/aero-dav/src/xml.rs index 020ee6c..d57093e 100644 --- a/aero-dav/src/xml.rs +++ b/aero-dav/src/xml.rs @@ -259,6 +259,7 @@ impl<T: IRead> Reader<T> { } pub async fn open_start(&mut self, ns: &[u8], key: &str) -> Result<Event<'static>, ParsingError> { + //println!("try open start tag {:?}, on {:?}", key, self.peek()); let evt = match self.peek() { Event::Start(_) if self.is_tag(ns, key) => self.next().await?, _ => return Err(ParsingError::Recoverable), |