-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
body_filter_by_lua_block works with curl but not with browsers #1345
Comments
Ok, I've solved with a specific location and removing the
is there a better way to doing it? |
Likely what's going on is that Nginx is receiving a compressed response back from the upstream, and so you are calling |
Basically the difference always comes from the different HTTP request headers. You may hide the
|
Hi,
I've a problem using
body_filter_by_lua_block
, it works just for requests by curl and not for browsers:My config:
From curl:
![image](https://user-images.githubusercontent.com/4454961/41656667-142724ce-7491-11e8-9199-d054001a2876.png)
From browser:
![image](https://user-images.githubusercontent.com/4454961/41656703-32de9eba-7491-11e8-80d7-0a29796b4833.png)
nginx -V:
Am I doing something wrong?
thanks
The text was updated successfully, but these errors were encountered: