Hi,
I am facing an issue where I am getting http requests with a duplicated HTTP Content-length header. NGINX is returning an error 400 Bad Request and it seems that this is hardcoded in the nginx source code [1]
Is there any way to sanitize these headers in Lua before nginx begin to parse them ? I have done some tests with header_filter_by_lua, but it seems this is executed after NGINX headers parsing.
Thanks,
Luis
[1] https://github.com/nginx/nginx/blob/master/src/http/ngx_http_request.c#L109 and https://github.com/nginx/nginx/blob/master/src/http/ngx_http_request.c#L1587