Welcome! Log In Create A New Profile

Advanced

Solved! body_filter_by_lua issues

Bart van Deenen
November 29, 2012 06:16AM
Hi all

I got my modifying reverse proxy working by adding

proxy_set_header Accept-Encoding '';

before my body_filter_by_lua code block. This way I force the proxy to give me uncompressed data, and then the lua code works perfectly. I'll add a gzip on; at the end, to pass the data to the browser compressed.

Thanks

Bart
________________________________
From: nginx-bounces@nginx.org [nginx-bounces@nginx.org] on behalf of Bart van Deenen [Bart.vanDeenen@spilgames.com]
Sent: Thursday, November 29, 2012 11:37 AM
To: nginx@nginx.org
Subject: does body_filter_by_lua get called when proxied server returns gzipped data?

Hi

I posted the recent thread on problems with body_filter_by_lua, and I think it finally has to do with the fact that my browser allows gzipped data, and the server in my example returns gzipped data. I only found out using wireshark.

Could it be that the gzipped data don't even reach the lua code?

Thanks

Bart
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Solved! body_filter_by_lua issues

Bart van Deenen November 29, 2012 06:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready