comparison src/http/modules/proxy/ngx_http_proxy_upstream.c @ 48:6cfc63e68377 NGINX_0_1_24

nginx 0.1.24 *) Feature: the ngx_http_ssi_filter_module supports the QUERY_STRING and DOCUMENT_URI variables. *) Bugfix: the ngx_http_autoindex_module may some times return the 404 response for existent directory, if this directory was used in "alias" directive. *) Bugfix: the ngx_http_ssi_filter_module ran incorrectly for large responses. *) Bugfix: the lack of the "Referer" header line was always accounted as valid referrer.
author Igor Sysoev <http://sysoev.ru>
date Fri, 04 Mar 2005 00:00:00 +0300
parents 9f3205d496a0
children 72eb30262aac
comparison
equal deleted inserted replaced
47:4ae32548452c 48:6cfc63e68377
188 var = cmcf->variables.elts; 188 var = cmcf->variables.elts;
189 index = p->lcf->x_vars->elts; 189 index = p->lcf->x_vars->elts;
190 190
191 for (i = 0; i < p->lcf->x_vars->nelts; i++) { 191 for (i = 0; i < p->lcf->x_vars->nelts; i++) {
192 192
193 if (!(value = ngx_http_get_variable(r, index[i]))) { 193 if (!(value = ngx_http_get_indexed_variable(r, index[i]))) {
194 continue; 194 continue;
195 } 195 }
196 196
197 if (value->text.len) { 197 if (value->text.len) {
198 len += sizeof("X-") - 1 + var[index[i]].name.len 198 len += sizeof("X-") - 1 + var[index[i]].name.len
377 377
378 378
379 if (p->lcf->x_vars) { 379 if (p->lcf->x_vars) {
380 for (i = 0; i < p->lcf->x_vars->nelts; i++) { 380 for (i = 0; i < p->lcf->x_vars->nelts; i++) {
381 381
382 if (!(value = ngx_http_get_variable(r, index[i]))) { 382 if (!(value = ngx_http_get_indexed_variable(r, index[i]))) {
383 continue; 383 continue;
384 } 384 }
385 385
386 if (value->text.len == 0) { 386 if (value->text.len == 0) {
387 continue; 387 continue;