Files
nixpkgs/pkgs/development/ocaml-modules/dream/httpun.patch
T
2025-02-19 06:51:46 +01:00

21 lines
713 B
Diff

diff --git a/src/http/adapt.ml b/src/http/adapt.ml
index c6bd416..5b01e17 100644
--- a/src/http/adapt.ml
+++ b/src/http/adapt.ml
@@ -74,7 +74,7 @@ let forward_body
response
(Httpun.Body.Writer.write_string body)
(Httpun.Body.Writer.write_bigstring body)
- (Httpun.Body.Writer.flush body)
+ (fun f -> Httpun.Body.Writer.flush body (fun _ -> f ()))
(fun _code -> Httpun.Body.Writer.close body)
let forward_body_h2
@@ -85,5 +85,5 @@ let forward_body_h2
response
(H2.Body.Writer.write_string body)
(H2.Body.Writer.write_bigstring body)
- (H2.Body.Writer.flush body)
+ (fun f -> H2.Body.Writer.flush body (fun _ -> f ()))
(fun _code -> H2.Body.Writer.close body)