missing mime type

This commit is contained in:
Lucas Nogueira
2025-10-30 19:25:19 -03:00
parent 70bb11538c
commit 05f8268acb

View File

@@ -136,7 +136,8 @@ wrap_resource_handler! {
let Some(response) = response else { return };
println!("response_headers: setting response headers");
response.set_status(200);
response.set_header_by_name(Some(&"content-type".into()), Some(&"text/plain".into()), 1);
response.set_mime_type(Some(&"text/html".into()));
response.set_header_by_name(Some(&"content-type".into()), Some(&"text/html".into()), 1);
response_length.map(|length| {
*length = -1;
});