Add status code to multistatus element

This commit is contained in:
Lennart
2024-08-02 20:35:52 +02:00
parent 35ec1f3899
commit 2bc9635501
4 changed files with 24 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ impl<R: Resource> HandlePropfind for R {
prop: TagList::from(props),
status: format!("HTTP/1.1 {}", StatusCode::OK),
})],
..Default::default()
});
}
if props.contains(&"allprop") {
@@ -155,6 +156,7 @@ impl<R: Resource> HandlePropfind for R {
Ok(ResponseElement {
href: path,
propstat: propstats,
..Default::default()
})
}
}