dav: Add namespace to propname

This commit is contained in:
Lennart
2025-05-10 13:13:51 +02:00
parent 37eb6df64a
commit 8f69bc839a
5 changed files with 33 additions and 18 deletions

View File

@@ -43,13 +43,15 @@ pub(crate) async fn route_propfind<R: ResourceService>(
}
};
dbg!(&propfind);
// TODO: respect namespaces?
let props = match &propfind.prop {
PropfindType::Allprop => vec!["allprop"],
PropfindType::Propname => vec!["propname"],
PropfindType::Prop(PropElement(prop_tags)) => prop_tags
.iter()
.map(|propname| propname.0.as_str())
.map(|propname| propname.name.as_str())
.collect(),
};