mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2026-03-07 21:37:57 -05:00
fix bug
This commit is contained in:
parent
b87226d1be
commit
2742a4715a
1 changed files with 1 additions and 2 deletions
|
|
@ -17,8 +17,7 @@ let test_header_too_large () =
|
||||||
let _ = Request.Private_.parse_req_start_exn ~client_addr ~buf
|
let _ = Request.Private_.parse_req_start_exn ~client_addr ~buf
|
||||||
~get_time_s:(fun _ -> 0.) str in
|
~get_time_s:(fun _ -> 0.) str in
|
||||||
failwith "should have failed with 431"
|
failwith "should have failed with 431"
|
||||||
with Common_.Bad_req (431, _) ->
|
with Tiny_httpd_core.Response.Bad_req (431, _) -> () (* expected *)
|
||||||
() (* expected *)
|
|
||||||
|
|
||||||
let () =
|
let () =
|
||||||
test_header_too_large ()
|
test_header_too_large ()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue