diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-08 11:42:44 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-08 11:42:44 +0100 |
commit | b786573e08c78b672880cd212db45fc58ab82c4c (patch) | |
tree | 0a53a458d343a6f5d12bf521ac58c03194573da2 /aero-dav/src/decoder.rs | |
parent | 4d65366ff368cc9ea35115cb7e701bfebb166bc6 (diff) | |
download | aerogramme-b786573e08c78b672880cd212db45fc58ab82c4c.tar.gz aerogramme-b786573e08c78b672880cd212db45fc58ab82c4c.zip |
Fixed 2 more bugs
Diffstat (limited to 'aero-dav/src/decoder.rs')
-rw-r--r-- | aero-dav/src/decoder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aero-dav/src/decoder.rs b/aero-dav/src/decoder.rs index 28442a6..766d19c 100644 --- a/aero-dav/src/decoder.rs +++ b/aero-dav/src/decoder.rs @@ -473,7 +473,7 @@ impl QRead<Owner> for Owner { impl QRead<Timeout> for Timeout { async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> { - const SEC_PFX: &str = "SEC_PFX"; + const SEC_PFX: &str = "Second-"; xml.open(DAV_URN, "timeout").await?; let timeout = match xml.tag_string().await?.as_str() { @@ -492,7 +492,7 @@ impl QRead<Timeout> for Timeout { impl QRead<LockToken> for LockToken { async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> { xml.open(DAV_URN, "locktoken").await?; - let href = Href::qread(xml).await?; + let href = xml.find::<Href>().await?; xml.close().await?; Ok(LockToken(href)) } @@ -501,7 +501,7 @@ impl QRead<LockToken> for LockToken { impl QRead<LockRoot> for LockRoot { async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> { xml.open(DAV_URN, "lockroot").await?; - let href = Href::qread(xml).await?; + let href = xml.find::<Href>().await?; xml.close().await?; Ok(LockRoot(href)) } |