comparison src/http/ngx_http_variables.c @ 406:6ebbca3d5ed7 NGINX_0_7_12

nginx 0.7.12 *) Feature: the "server_name" directive supports empty name "". *) Feature: the "gzip_disable" directive supports special "msie6" mask. *) Bugfix: if the "max_fails=0" parameter was used in upstream with several servers, then a worker process exited on a SIGFPE signal. Thanks to Maxim Dounin. *) Bugfix: a request body was dropped while redirection via an "error_page" directive. *) Bugfix: a full response was returned for request method HEAD while redirection via an "error_page" directive. *) Bugfix: the $r->header_in() method did not return value of the "Host", "User-Agent", and "Connection" request header lines; the bug had appeared in 0.7.0.
author Igor Sysoev <http://sysoev.ru>
date Tue, 26 Aug 2008 00:00:00 +0400
parents 34fb3a573548
children 79c5df00501e
comparison
equal deleted inserted replaced
404:59e324e4d6d3 406:6ebbca3d5ed7
870 ngx_http_variable_server_addr(ngx_http_request_t *r, 870 ngx_http_variable_server_addr(ngx_http_request_t *r,
871 ngx_http_variable_value_t *v, uintptr_t data) 871 ngx_http_variable_value_t *v, uintptr_t data)
872 { 872 {
873 ngx_str_t s; 873 ngx_str_t s;
874 874
875 s.data = ngx_pnalloc(r->pool, INET_ADDRSTRLEN); 875 s.data = ngx_pnalloc(r->pool, NGX_INET_ADDRSTRLEN);
876 if (s.data == NULL) { 876 if (s.data == NULL) {
877 return NGX_ERROR; 877 return NGX_ERROR;
878 } 878 }
879 879
880 if (ngx_http_server_addr(r, &s) != NGX_OK) { 880 if (ngx_http_server_addr(r, &s) != NGX_OK) {