From 82ea9e2266708c3a2cca9f0204af628030c89bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Fri, 4 Nov 2022 15:05:02 +0100 Subject: [PATCH] Also add charset=utf-8 for console and script --- lib/builder_web.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder_web.ml b/lib/builder_web.ml index e424566..5ed367b 100644 --- a/lib/builder_web.ml +++ b/lib/builder_web.ml @@ -442,7 +442,7 @@ let routes ~datadir ~cachedir ~configdir = |> if_error "Error getting data" ~log:(fun e -> Log.warn (fun m -> m "Error getting script or console data for build %a: %a" Uuidm.pp build pp_error e)) >>= fun data -> - let headers = [ "Content-Type", "text/plain" ] in + let headers = [ "Content-Type", "text/plain; charset=utf-8" ] in Dream.respond ~headers data |> Lwt_result.ok in