comparison src/http/ngx_http_header_filter_module.c @ 2197:74477ea8074f

*) remove zero termination in ngx_inet_ntop() and ngx_sock_ntop() *) use ngx_snprintf() in ngx_inet_ntop() and ngx_sock_ntop() as they are called just once per connection *) NGX_INET_ADDRSTRLEN
author Igor Sysoev <igor@sysoev.ru>
date Thu, 21 Aug 2008 18:47:23 +0000
parents 8488178092f2
children 2e91aecb9e57
comparison
equal deleted inserted replaced
2196:fab3fa7339ff 2197:74477ea8074f
160 ngx_list_part_t *part; 160 ngx_list_part_t *part;
161 ngx_table_elt_t *header; 161 ngx_table_elt_t *header;
162 ngx_http_core_loc_conf_t *clcf; 162 ngx_http_core_loc_conf_t *clcf;
163 ngx_http_core_srv_conf_t *cscf; 163 ngx_http_core_srv_conf_t *cscf;
164 /* AF_INET only */ 164 /* AF_INET only */
165 u_char addr[INET_ADDRSTRLEN]; 165 u_char addr[NGX_INET_ADDRSTRLEN];
166 166
167 r->header_sent = 1; 167 r->header_sent = 1;
168 168
169 if (r != r->main) { 169 if (r != r->main) {
170 return NGX_OK; 170 return NGX_OK;