From 05f8268acba8ab0f86ef06637bb23e81979f89fb Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 30 Oct 2025 19:25:19 -0300 Subject: [PATCH] missing mime type --- crates/tauri-runtime-cef/src/cef_impl/request_handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/tauri-runtime-cef/src/cef_impl/request_handler.rs b/crates/tauri-runtime-cef/src/cef_impl/request_handler.rs index eaa13e965..8645dc1fc 100644 --- a/crates/tauri-runtime-cef/src/cef_impl/request_handler.rs +++ b/crates/tauri-runtime-cef/src/cef_impl/request_handler.rs @@ -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; });