seems to kinda work, the userspace errors missing Html_types module
This commit is contained in:
@ -37,7 +37,9 @@ let proxy_handler reqd : unit =
|
||||
| Request.{ meth; headers; target; _ } ->
|
||||
Lwt.async (fun () ->
|
||||
let filename = Fmt.str "./%s" target in
|
||||
if Sys.file_exists filename && Sys.is_regular_file filename
|
||||
if
|
||||
Sys.file_exists
|
||||
filename (* && Sys.is_regular_file filename *)
|
||||
then (
|
||||
let file =
|
||||
Lwt_io.open_file ~flags:[ O_RDONLY ] ~mode:Lwt_io.input
|
||||
|
||||
Reference in New Issue
Block a user