Body decoding


#1

Hello all,

I didn’t find this in documentation or in the maillist archive, so
any comments appreciated.

Am I correct that nginx does not decode server response, and in the
case of sub_filter it tries to operate on encoded content?
(There are two encodings I’m aware of - Content-Encoding and
Transport-Encoding.)

If no, what are the configuration steps to decode body before
sub_filter?


#2

As far as I know, yes, nginx always operates on original proxied
response body.