mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 19:25:32 -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
|
} in
|
||||||
Ok (Some req)
|
Ok (Some req)
|
||||||
with
|
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)
|
| Bad_req (c,s) -> Error (c,s)
|
||||||
| e ->
|
| e ->
|
||||||
Error (400, Printexc.to_string e)
|
Error (400, Printexc.to_string e)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue