Skip to content

Commit

Permalink
fix: don't print request bodies as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Jan 16, 2024
1 parent f9bdec5 commit 24f6a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/http1.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module Parser = struct
| exception Header_fields_too_large -> `header_fields_too_large
| exception Need_more_data -> `more data
| req ->
error (fun f ->
trace (fun f ->
f "parsed_request: %a -> preread_body=%d" Trail.Request.pp req
(Bytestring.length req.buffer));
`ok req
Expand Down

0 comments on commit 24f6a00

Please sign in to comment.