How would it be possible in nginx to evaluate if the Content-Encoding: gzip
request header is set (coming from a web client to nginx), and then let nginx gunzip
the request before it gets forwarded to an upstream (e.g. fastcgi)?
Nginx: Conditional request gunzip when `Content-Encoding: gzip` is set
fastcgigzipnginx
Best Answer
After more research it seems decompressing requests is not possible out of the box. Using LUA like described here is unfortunately not something I want to do: http://www.pataliebre.net/howto-make-nginx-decompress-a-gzipped-request.html#.VrCv87IrKHt.
Seems like I'd have to handle the decompression in my backend server code :/