rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
643 stars 55 forks source link

ngx_request_headers does not get all headers #139

Open ne4u opened 2 years ago

ne4u commented 2 years ago

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