early errors: set the charset in http headers

This commit is contained in:
lovasoa
2025-08-30 13:52:50 +02:00
parent 9320b16dca
commit 3bd5dff44a
+1 -1
View File
@@ -231,7 +231,7 @@ fn anyhow_err_to_actix_resp(e: &anyhow::Error, env: app_config::DevOrProd) -> Ht
}
resp.insert_header((
header::CONTENT_TYPE,
header::HeaderValue::from_static("text/plain"),
header::HeaderValue::from_static("text/plain; charset=utf-8"),
));
if let Some(status_err @ &ErrorWithStatus { .. }) = e.downcast_ref() {