Hello!
On Tue, Nov 18, 2014 at 10:43 PM, Gaurav Kumar wrote:
> I am finding that value of ngx.arg[1] after execution of code contains
> plaintext HTML when server responded with gzip encoded data. If there a way
> I can access full raw bytes in body_filter_by_lua?
Two options:
1. disable gzip compression in your *backend server* by configuring
proxy_set_header Accept-Encoding "";
or
2. de-compress the gzip data chunk in your filter via a Lua binding to
zlib (like lua-zlib).
Regards,
-agentzh