mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
fix: 1xx codes are also success
This commit is contained in:
parent
ba17858063
commit
a309c657c8
1 changed files with 1 additions and 1 deletions
|
|
@ -29,4 +29,4 @@ let descr = function
|
|||
| 503 -> "Service unavailable"
|
||||
| n -> "Unknown response code " ^ string_of_int n (* TODO *)
|
||||
|
||||
let[@inline] is_success n = n >= 200 && n < 400
|
||||
let[@inline] is_success n = n < 400
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue