How does the Tyk-Gateway handle Transfer-Encoding: chunked?

Hi Team,

Just wondering how the Tyk-Gateway handles a situation where “Transfer-Encoding: chunked” is set?

For context, there is a diagram attached. Does the Gateway forward the response to the Web Application (or API consumer) to decode in Figure A) or does the Gateway decode the response and forward the response as in Figure B)?