···1818 let%lwt did = Body.to_string body in
1919 Lwt.return_ok did
2020 | _ ->
2121+ let%lwt () = Body.drain_body body in
2122 Lwt.return_error "failed to resolve"
2223 with exn -> Lwt.return_error (Printexc.to_string exn)
2324···167168 let%lwt body = Body.to_string body in
168169 body |> Yojson.Safe.from_string |> Document.of_yojson |> Lwt.return
169170 | _ ->
171171+ let%lwt () = Body.drain_body body in
170172 Lwt.return_error "failed to resolve"
171173 with e -> Lwt.return_error (Printexc.to_string e)
172174···188190 let%lwt body = Body.to_string body in
189191 body |> Yojson.Safe.from_string |> Document.of_yojson |> Lwt.return
190192 | _ ->
193193+ let%lwt () = Body.drain_body body in
191194 Lwt.return_error "failed to resolve"
192195 with e -> Lwt.return_error (Printexc.to_string e)
193196
+1
pegasus/lib/plc.ml
···237237 let%lwt res, body = Client.post ~headers ~body endpoint in
238238 match res.status with
239239 | `OK ->
240240+ let%lwt () = Body.drain_body body in
240241 Lwt.return_ok ()
241242 | _ ->
242243 let%lwt body_str = Body.to_string body in
+2
pegasus/lib/xrpc.ml
···9292 let%lwt body = Body.to_string body in
9393 Lwt.return @@ Dream.response ~status:`OK body
9494 | e ->
9595+ let%lwt () = Body.drain_body body in
9596 Dream.error (fun log ->
9697 log "error when proxying to %s: %s" (Uri.to_string uri)
9798 (Http.Status.to_string e) ) ;
···106107 let%lwt body = Body.to_string body in
107108 Lwt.return @@ Dream.response ~status:`OK body
108109 | e ->
110110+ let%lwt () = Body.drain_body body in
109111 Dream.error (fun log ->
110112 log "error when proxying to %s: %s" (Uri.to_string uri)
111113 (Http.Status.to_string e) ) ;