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

support always_forward_headers for ngx.location.capture #2375

Open
HanadaLee opened this issue Nov 6, 2024 · 0 comments
Open

support always_forward_headers for ngx.location.capture #2375

HanadaLee opened this issue Nov 6, 2024 · 0 comments

Comments

@HanadaLee
Copy link

According to the documentation: Original request headers should be ignored by setting proxy_pass_request_headers to off in subrequest locations.

However, if proxy_pass_request_headers is used, the headers carried by the headers parameter will also be ignored.

I hope to use a unified location to complete the subrequest, so I hope to be able to control the headers carried to the subrequest in the Lua code (whether to forward the request headers of the main request, the request headers that have been attached, etc.), so I hope to be able to implement the always_forward_headers option, just like always_forward_body.

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

1 participant