rgrinberg / curly

Command line curl wrapper for OCaml
ISC License
42 stars 9 forks source link

Ignore informational (1xx) responses #23

Closed leviroth closed 4 months ago

leviroth commented 4 months ago

Handle informational (1xx) responses similarly to how we handle redirects.

I tested this manually by fetching a Medium URL (https://pancy.medium.com/first-step-building-ocaml-with-dune-3661ee646cbb) that happens to return a 103 response (not 100% of the time, but usually, it seems). Without this fix, the code field in the response was 103, but with the fix it was 200.