diff --git a/src/Tiny_httpd.ml b/src/Tiny_httpd.ml index 1c76b647..31e5b092 100644 --- a/src/Tiny_httpd.ml +++ b/src/Tiny_httpd.ml @@ -179,6 +179,7 @@ module Response_code = struct | 300 -> "Multiple choices" | 301 -> "Moved permanently" | 302 -> "Found" + | 304 -> "Not Modified" | 400 -> "Bad request" | 403 -> "Forbidden" | 404 -> "Not found" diff --git a/src/bin/http_of_dir.ml b/src/bin/http_of_dir.ml index ad01ca51..bd52c309 100644 --- a/src/bin/http_of_dir.ml +++ b/src/bin/http_of_dir.ml @@ -39,7 +39,7 @@ let html_list_dir ~top ~parent d : string = |} top d; begin match parent with | None -> () - | Some p -> + | Some p -> Printf.bprintf body " (parent directory) \n" p; end; Printf.bprintf body "