We could offer an env-var override to disable chunked encoding in HTTP mode. The side-effect is that we would have to cache the request in memory before proxying it to the upstream_url - but this also adds greater compatibility with frameworks like PHP Swoole.
Current Behaviour
PHP Swoole for instance cannot support transfer-encoding of chunked.
Possible Solution
If an env-var is set then buffer the response to gauge the length and then forward on to the upstream_url.
Expected Behaviour
We could offer an env-var override to disable chunked encoding in HTTP mode. The side-effect is that we would have to cache the request in memory before proxying it to the upstream_url - but this also adds greater compatibility with frameworks like PHP Swoole.
Current Behaviour
PHP Swoole for instance cannot support transfer-encoding of chunked.
Possible Solution
If an env-var is set then buffer the response to gauge the length and then forward on to the upstream_url.
Steps to Reproduce (for bugs)