ngx_table_elt_t *header;
ngx_http_core_loc_conf_t *clcf;
ngx_http_core_srv_conf_t *cscf;
- /* AF_INET only */
- u_char addr[NGX_INET_ADDRSTRLEN];
+ u_char addr[NGX_SOCKADDR_STRLEN];
r->header_sent = 1;
host = r->headers_in.server;
} else {
+ host.len = NGX_SOCKADDR_STRLEN;
host.data = addr;
if (ngx_http_server_addr(r, &host) != NGX_OK) {