Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cohttp-async.opam
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
depends: [
"ocaml" {>= "4.04.1"}
"dune" {>= "1.1.0"}
"async_kernel" {>= "v0.13.0"}
"async_unix" {>= "v0.13.0"}
"async" {>= "v0.13.0"}
"async_kernel" {>= "v0.14.0"}
"async_unix" {>= "v0.14.0"}
"async" {>= "v0.14.0"}
"base" {>= "v0.11.0"}
"core" {with-test}
"cohttp" {=version}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-async/bin/cohttp_server_async.ml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ let serve ~info ~docroot ~index uri path =
| Ok res -> return res
| Error exn ->
begin match Monitor.extract_exn exn with
| Unix.Unix_error (Unix.ENOENT, "stat", p) ->
| Unix.Unix_error (Unix.Error.ENOENT, "stat", p) ->
if String.equal p ("((filename "^file_name^"))") (* Really? *)
then Server.respond_string ~status:`Not_found
(html_of_not_found path info)
Expand Down