SuaveIO / suave

Suave is a simple web development F# library providing a lightweight web server and a set of combinators to manipulate route flow and task composition.
https://suave.io
Other
1.32k stars 198 forks source link

How to proxy with transfer-encoding chunked? #750

Open Mousaka opened 3 years ago

Mousaka commented 3 years ago

I'm trying to proxy to an endpoint using proxy from a Suave server where the remote endpoint is giving me a response with transfer-encoding: chunked.

My Suave server logs

[16:33:33 INF] POST Response (StatusCode 200) at /graphql took 8 ms
[16:34:17 INF] POST Request at /graphql

But my client that made the call says

curl: (56) Illegal or missing hexadecimal sequence in chunked-encoding

My question: Does proxy not work with transfer-encoding chunked data?

ademar commented 3 years ago

No, the current implementation does not handle chunked data properly.

It needs a few adjustments.