Skip to content

Commit 3bd5dff

Browse files
committed
early errors: set the charset in http headers
1 parent 9320b16 commit 3bd5dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ fn anyhow_err_to_actix_resp(e: &anyhow::Error, env: app_config::DevOrProd) -> Ht
231231
}
232232
resp.insert_header((
233233
header::CONTENT_TYPE,
234-
header::HeaderValue::from_static("text/plain"),
234+
header::HeaderValue::from_static("text/plain; charset=utf-8"),
235235
));
236236

237237
if let Some(status_err @ &ErrorWithStatus { .. }) = e.downcast_ref() {

0 commit comments

Comments
 (0)