mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 20:52:31 +00:00
Add prefix to xml output
This commit is contained in:
@@ -193,7 +193,7 @@ pub async fn route_report_calendar<A: CheckAuthentication, C: CalendarStore + ?S
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
let mut ser = quick_xml::se::Serializer::new(&mut output);
|
||||||
ser.indent(' ', 4);
|
ser.indent(' ', 4);
|
||||||
MultistatusElement {
|
MultistatusElement {
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ pub async fn route_propfind<A: CheckAuthentication, R: ResourceService + ?Sized>
|
|||||||
let resource = resource_service.get_file().await?;
|
let resource = resource_service.get_file().await?;
|
||||||
let response = resource.propfind(&prefix, props).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);
|
let mut ser = quick_xml::se::Serializer::new(&mut output);
|
||||||
ser.indent(' ', 4);
|
ser.indent(' ', 4);
|
||||||
MultistatusElement {
|
MultistatusElement {
|
||||||
|
|||||||
Reference in New Issue
Block a user