Body decoding

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

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

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