mirage / ocaml-cohttp

An OCaml library for HTTP clients and servers using Lwt or Async
Other
704 stars 174 forks source link

cohttp-{lwt,eio}: server: return connection header #1025

Closed ushitora-anqou closed 4 months ago

ushitora-anqou commented 6 months ago

ocaml-async returns a connection HTTP header if one doesn't exist in the response (here), but cohttp-lwt and cohttp-eio do not.

This PR solves the above issue.

mseri commented 6 months ago

Thanks. Can you add a changelog entry?

ushitora-anqou commented 6 months ago

I updated my patch.