diff --git a/cohttp-async/src/body_raw.ml b/cohttp-async/src/body_raw.ml index e18a2a6b22..5980d8938b 100644 --- a/cohttp-async/src/body_raw.ml +++ b/cohttp-async/src/body_raw.ml @@ -37,7 +37,7 @@ let is_empty (body:t) = let to_pipe = function | `Empty -> Pipe.of_list [] - | `String s -> Pipe.of_list [s] + | `String s -> Pipe.singleton s | `Strings sl -> Pipe.of_list sl | `Pipe p -> p