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

ngx_request_headers does not get all headers #139

Open
ne4u opened this issue Sep 28, 2022 · 0 comments
Open

ngx_request_headers does not get all headers #139

ne4u opened this issue Sep 28, 2022 · 0 comments

Comments

@ne4u
Copy link

ne4u commented Sep 28, 2022

When using ngx_request_headers these are the only headers I get back:

HOST
CONNECTION
CACHE_CONTROL
UPGRADE_INSECURE_REQUESTS
USER_AGENT
ACCEPT
ACCEPT_ENCODING
ACCEPT_LANGUAGE
REFERER

I've tried sending custom headers with cURL and they are not included in the ngx_request_headers array. Ex:

curl -e "https://fakeded.referer" -H "X-Forwarded-For: 192.168.0.1" -H "foo: bar" http://test.com

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