Skip to content

Commit

Permalink
cohttp-lwt-unix: adapt to new http constructors
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
  • Loading branch information
mseri committed Jun 14, 2022
1 parent 918dfff commit e89bd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohttp-lwt-unix/src/server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let respond_file ?headers ~fname () =
let headers =
Http.Header.add_opt_unless_exists headers "content-type" mime_type
in
let res = Http.Response.make ~status:`OK ~encoding ~headers () in
let res = Cohttp.Response.make ~status:`OK ~encoding ~headers () in
Lwt.return (res, body))
(function
| Unix.Unix_error (Unix.ENOENT, _, _) | Isnt_a_file ->
Expand Down

0 comments on commit e89bd22

Please sign in to comment.