suave icon indicating copy to clipboard operation
suave copied to clipboard

How to proxy with transfer-encoding chunked?

Open Mousaka opened this issue 5 years ago • 1 comments

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?

Mousaka avatar Jan 07 '21 15:01 Mousaka

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

It needs a few adjustments.

ademar avatar Jan 08 '21 15:01 ademar