> On 25 Jun 2023, at 11:25, 洪志道 <hongzhi...@gmail.com> wrote: > > Hi, > I wonder if the `ngx_http_headers_out` variable is being used? If yes, what > is it for? > > ``` > /* src/http/ngx_http_header_filter_module.c */ > > ngx_http_header_out_t ngx_http_headers_out[] = { > { ngx_string("Server"), offsetof(ngx_http_headers_out_t, server) }, > { ngx_string("Date"), offsetof(ngx_http_headers_out_t, date) }, > @@ -151,6 +152,7 @@ > > { ngx_null_string, 0 } > }; > ``` >
It was used to support Apache LogFormat %{VARNAME}o syntax before 0.5.0. -- Sergey Kandaurov _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx-devel