Skip to content

Commit

Permalink
cohttp-async: use the correct Response constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
  • Loading branch information
mseri committed Jun 14, 2022
1 parent 732689b commit 8a80b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohttp-async/src/server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ let handle_client handle_request sock rd wr =
let respond ?(flush = true) ?(headers = Http.Header.init ()) ?(body = `Empty)
status : response Deferred.t =
let encoding = Body.transfer_encoding body in
let resp = Http.Response.make ~status ~flush ~encoding ~headers () in
let resp = Cohttp.Response.make ~status ~flush ~encoding ~headers () in
return (resp, body)

let respond_with_pipe ?flush ?headers ?(code = `OK) body =
Expand Down

0 comments on commit 8a80b32

Please sign in to comment.