diff --git a/src/core/ezcurl_core.ml b/src/core/ezcurl_core.ml index be1cf3c..c5ef70f 100644 --- a/src/core/ezcurl_core.ml +++ b/src/core/ezcurl_core.ml @@ -399,7 +399,9 @@ module Make (IO : IO) : S with type 'a io = 'a IO.t = struct let do_cleanup, self = match client with | None -> true, make () - | Some c -> false, c + | Some c -> + Curl.reset c.curl; + false, c in _apply_config self config; opt_iter range ~f:(fun s -> Curl.set_range self.curl s);