Mercurial > hg > nginx-vendor-1-0
comparison src/http/ngx_http_variables.c @ 102:f63280c59dd5 NGINX_0_2_5
nginx 0.2.5
*) Change: the duplicate value of the ngx_http_geo_module variable now
causes the warning and changes old value.
*) Feature: the ngx_http_ssi_module supports the "set" command.
*) Feature: the ngx_http_ssi_module supports the "file" parameter in
the "include" command.
*) Feature: the ngx_http_ssi_module supports the variable value
substitutions in expressions of the "if" command.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 04 Oct 2005 00:00:00 +0400 |
parents | e916a291e9aa |
children | 45f7329b4bd0 |
comparison
equal
deleted
inserted
replaced
101:5bb09dde34e7 | 102:f63280c59dd5 |
---|---|
227 ngx_http_variable_value_t *vv; | 227 ngx_http_variable_value_t *vv; |
228 ngx_http_core_main_conf_t *cmcf; | 228 ngx_http_core_main_conf_t *cmcf; |
229 | 229 |
230 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); | 230 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); |
231 | 231 |
232 if (cmcf->variables.elts == NULL || cmcf->variables.nelts <= index) { | 232 if (cmcf->variables.nelts <= index) { |
233 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, | 233 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, |
234 "unknown variable index: %d", index); | 234 "unknown variable index: %d", index); |
235 return NULL; | 235 return NULL; |
236 } | 236 } |
237 | 237 |