mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
forgot to catch Unix_error
This commit is contained in:
parent
462fbd661c
commit
8c7b764b30
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ module Request = struct
|
|||
} in
|
||||
Ok (Some req)
|
||||
with
|
||||
| End_of_file | Sys_error _ -> Ok None
|
||||
| End_of_file | Sys_error _ | Unix.Unix_error _ -> Ok None
|
||||
| Bad_req (c,s) -> Error (c,s)
|
||||
| e ->
|
||||
Error (400, Printexc.to_string e)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue