Add prefix to xml output

This commit is contained in:
Lennart
2024-06-01 14:41:42 +02:00
parent 7dcc29302a
commit c84ee9807d
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ pub async fn route_propfind<A: CheckAuthentication, R: ResourceService + ?Sized>
let resource = resource_service.get_file().await?;
let response = resource.propfind(&prefix, props).await?;
let mut output = String::new();
let mut output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n".to_owned();
let mut ser = quick_xml::se::Serializer::new(&mut output);
ser.indent(' ', 4);
MultistatusElement {