feat(bin): set charset to utf8

This commit is contained in:
Simon Cruanes 2019-11-26 19:07:20 -06:00
parent 98642811bc
commit 6852912fbb

View file

@ -49,7 +49,7 @@ let html_list_dir ~top ~parent d : string =
Array.sort compare entries;
let body = Buffer.create 256 in
(* TODO: breadcrumbs for the path, each element a link to the given ancestor dir *)
Printf.bprintf body {|<head><title> http_of_dir %S</title>
Printf.bprintf body {|<head><title> http_of_dir %S</title><meta charset="utf-8">
</head><body>
<h2> Index of %S</h2>
|} top d;