Welcome! Log In Create A New Profile

Advanced

Re: Is ngx_http_headers_out dead code?

Sergey Kandaurov
July 20, 2023 07:58AM
> On 25 Jun 2023, at 11:25, 洪志道 <hongzhidao@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
Subject Author Views Posted

Is ngx_http_headers_out dead code?

karton 468 June 25, 2023 03:26AM

Re: Is ngx_http_headers_out dead code?

Sergey Kandaurov 83 July 20, 2023 07:58AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 260
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready