Skip to content

Commit 75d9055

Browse files
committed
fix warnings
1 parent e177153 commit 75d9055

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/bin/http_of_dir.ml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
module S = Tiny_httpd
2-
module U = Tiny_httpd.Util
32
module D = Tiny_httpd.Dir
4-
module Pf = Printf
53
module Log = Tiny_httpd.Log
64

75
let serve ~config ~timeout (dir : string) addr port j : _ result =
86
let server = S.create ~max_connections:j ~addr ~port ~timeout () in
97
let after_init () =
108
Printf.printf "serve directory %s on http://%(%s%):%d\n%!" dir
119
(if S.is_ipv6 server then
12-
"[%s]"
13-
else
14-
"%s")
10+
"[%s]"
11+
else
12+
"%s")
1513
addr (S.port server)
1614
in
1715

@@ -63,9 +61,9 @@ let main () =
6361
(fun b ->
6462
config.dir_behavior <-
6563
(if b then
66-
Index_or_lists
67-
else
68-
Lists)),
64+
Index_or_lists
65+
else
66+
Lists)),
6967
" <bool> automatically redirect to index.html if present" );
7068
( "--delete",
7169
Unit (fun () -> config.delete <- true),

0 commit comments

Comments
 (0)