fix: misaligned `</head>` tags in streaming responses (closes #1930) (#1932)

This commit is contained in:
Greg Johnston 2023-10-24 15:42:07 -04:00 committed by GitHub
parent eb86899e08
commit d943a50df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ pub fn html_parts_separated(
}}); }});
</script> </script>
{leptos_autoreload} {leptos_autoreload}
"# </head>"#
); );
let tail = "</body></html>"; let tail = "</body></html>";
(head, tail) (head, tail)
@ -155,5 +155,5 @@ pub async fn build_async_response(
runtime.dispose(); runtime.dispose();
format!("{head}</head><body{body_meta}>{buf}{tail}") format!("{head}<body{body_meta}>{buf}{tail}")
} }