mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
feat(bin): set charset to utf8
This commit is contained in:
parent
98642811bc
commit
6852912fbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue