fix(cli): web_dev_server html template serialization (fix #6165) (#6166)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
Alain Nicolas Schneble
2023-01-29 19:12:01 +01:00
committed by GitHub
parent f7ac2e9250
commit 314f0e212f
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Fixes HTML serialization removing template tags on the dev server.

View File

@@ -126,7 +126,7 @@ async fn handler<T>(req: Request<T>, state: Arc<State>) -> impl IntoResponse {
head.prepend(script_el);
});
f = document.to_string().as_bytes().to_vec();
f = tauri_utils::html::serialize_node(&document);
}
(StatusCode::OK, [(CONTENT_TYPE, mime_type)], f)