While Couper tries to detect the usage of body or json_body variable references to decide to read the upstream response body or not the condition for that seems to be broken since Couper will buffer the content even those variables are not in use.
To Reproduce
Steps to reproduce the behavior:
Which Couper version? Run couper version or docker run avenga/couper version
edge and 1.12
Provide your configuration file *.hcl. Remove sensitive data.
Describe the bug
While Couper tries to detect the usage of
body
orjson_body
variable references to decide to read the upstream response body or not the condition for that seems to be broken since Couper will buffer the content even those variables are not in use.To Reproduce Steps to reproduce the behavior:
couper version
ordocker run avenga/couper version
edge
and1.12
*.hcl
. Remove sensitive data.curl
call for reproductioncurl -v http://localhost:8080/
Expecting to see data chunks while streaming the iso file but it all gets loaded into memory if you closely watch the Couper process allocs.