comparison src/http/ngx_http_variables.c @ 300:cba14c1e2a4b NGINX_0_5_20

nginx 0.5.20 *) Feature: the "sendfile_max_chunk" directive. *) Feature: the "$http_...", "$sent_http_...", and "$upstream_http_..." variables may be changed using the "set" directive. *) Bugfix: a segmentation fault might occur in worker process if the SSI command 'if expr="$var = /"' was used. *) Bugfix: trailing boundary of multipart range response was transferred incorrectly. Thanks to Evan Miller. *) Bugfix: nginx did not work on Solaris/sparc64 if it was built by Sun Studio. Thanks to Andrei Nigmatulin. *) Bugfix: the ngx_http_perl_module could not built by Solaris make. Thanks to Andrei Nigmatulin.
author Igor Sysoev <http://sysoev.ru>
date Mon, 07 May 2007 00:00:00 +0400
parents 2ceaee987f37
children 3021f899881a
comparison
equal deleted inserted replaced
299:7d0d14dc5fd7 300:cba14c1e2a4b
1267 1267
1268 for (i = 0; i < cmcf->variables.nelts; i++) { 1268 for (i = 0; i < cmcf->variables.nelts; i++) {
1269 1269
1270 for (n = 0; n < cmcf->variables_keys->keys.nelts; n++) { 1270 for (n = 0; n < cmcf->variables_keys->keys.nelts; n++) {
1271 1271
1272 if (v[i].name.len == key[n].key.len 1272 av = key[n].value;
1273
1274 if (av->get_handler
1275 && v[i].name.len == key[n].key.len
1273 && ngx_strncmp(v[i].name.data, key[n].key.data, v[i].name.len) 1276 && ngx_strncmp(v[i].name.data, key[n].key.data, v[i].name.len)
1274 == 0) 1277 == 0)
1275 { 1278 {
1276 av = key[n].value;
1277
1278 v[i].get_handler = av->get_handler; 1279 v[i].get_handler = av->get_handler;
1279 v[i].data = av->data; 1280 v[i].data = av->data;
1280 1281
1281 av->flags |= NGX_HTTP_VAR_INDEXED; 1282 av->flags |= NGX_HTTP_VAR_INDEXED;
1282 v[i].flags = av->flags; 1283 v[i].flags = av->flags;