Documente la crate pmoapp

This commit is contained in:
2025-10-06 11:54:32 +02:00
parent ff4aefd019
commit 7abc5d4d6a
5 changed files with 229 additions and 29 deletions

View File

@@ -316,10 +316,7 @@ impl DeviceInstance {
return StatusCode::INTERNAL_SERVER_ERROR.into_response();
}
let mut xml = String::from_utf8_lossy(&xml_output).to_string();
// Ajouter l'en-tête XML
xml.insert_str(0, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
let xml = String::from_utf8_lossy(&xml_output).to_string();
(
StatusCode::OK,