Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuihtlauac ALVARADO committed Feb 13, 2025
1 parent 069ed03 commit 0dc0a00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ocamlorg_web/lib/router.ml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ let middleware_text_utf8 handler request =
let ( let& ) opt some = Option.fold ~none:response ~some opt in
let headers = Dream.all_headers response in
let& content_type = List.assoc_opt "Content-Type" headers in
let& _ = if String.starts_with ~prefix:"text/plain" content_type then Some () else None in
let& _ =
if String.starts_with ~prefix:"text/plain" content_type then Some ()
else None
in
Dream.drop_header response "Content-Type";
Dream.add_header response "Content-Type" (content_type ^ "; charset=utf-8");
response
Expand Down

0 comments on commit 0dc0a00

Please sign in to comment.