Skip to content

Commit

Permalink
remove unused close-delimited match
Browse files Browse the repository at this point in the history
The fact that this is unused means that there is no representation of a
close-delimited request body. If the content-length header is missing,
it's assumed to be 0 bytes fixed-length.
  • Loading branch information
dpatti committed Apr 2, 2021
1 parent 66f3e7a commit 8aab983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse.ml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ module Reader = struct
| `Fixed 0L ->
handler request Body.empty;
ok
| `Fixed _ | `Chunked | `Close_delimited as encoding ->
| `Fixed _ | `Chunked as encoding ->
let request_body = Body.create_reader Bigstringaf.empty in
handler request request_body;
body ~encoding request_body *> ok
Expand Down

0 comments on commit 8aab983

Please sign in to comment.