I am trying to use ngx_http_subrequest in my customize nginx module. I
see from the code that the subrequest share the same request header with
main request(sr->headers_in = r->headers_in). Is there a way to modify,
or delete request header for subrequest without affecting the request
of the main request?
I tried ngx_list_init(&sr->headers_in.headers and use ngx_list_push to
new header in. And it is giving me a runtime error. Can someone point me
the right direction?
Posted at Nginx Forum: