Skip to content
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

Get header value using Lua before hiding header by clear_more_headers #140

Open
SanaZulfiqar73 opened this issue Aug 31, 2022 · 1 comment

Comments

@SanaZulfiqar73
Copy link

Hi,

I have the scenario where I am receiving a response header in nginx and want to retrieve one value from the response header using lua in the http block.
Also, When I send this response header to user I want to remove that header from the response. When I do that using "clear_more_headers" in server block, Lua block also don't get the value for that response header.
I want to know is there a way I can get the value first and then clear that header.

thanks

@zhuizhuhaomeng
Copy link
Contributor

use lua to clear the header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants