Skip to content

Commit

Permalink
refactor(async): use [Strings] for string list (#1060)
Browse files Browse the repository at this point in the history
Instead of [Pipe]

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jun 30, 2024
1 parent c54b69f commit b4a24d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohttp-async/src/body.ml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let transfer_encoding = function
| #B.t as t -> B.transfer_encoding t
| `Pipe _ -> Cohttp.Transfer.Chunked

let of_string_list strings = `Pipe (Pipe.of_list strings)
let of_string_list strings = `Strings strings

let map t ~f =
match t with
Expand Down

0 comments on commit b4a24d9

Please sign in to comment.