Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to handle gziped capture? #12
This may be more of a question than an issue. I want to feed the body of one capture into another ex:
Remove Accept-Encoding header from the request can prevent server responsing with gzip compressed content. If this can't be done, you can also decompress gzip'd content in Lua by using birmworks' lua-zlib module or similar ones (https://github.com/brimworks/lua-zlib).
If you're using the ngx_proxy module for your subrequests, try using the following directive to prevent forwarding your original request's headers:
See http://wiki.nginx.org/NginxHttpProxyModule#proxy_pass_request_headers for more details.
Alternatively, you can explicitly remove the Accep-Encoding header in your subrequest location like this:
You need the ngx_headers_more module though. See http://wiki.nginx.org/NginxHttpHeadersMoreModule#more_clear_input_headers for more details :)
Thank-you. All three options work.
Downloaded https://github.com/brimworks/lua-zlib :
added following to conf:
I like having all three as options (may need gz some time and good to be able to modify the headers). I also like the work that both of you are doing; very cool.