Mercurial > hg > nginx-vendor-current
comparison src/http/modules/ngx_http_sub_filter_module.c @ 392:34fb3a573548 NGINX_0_7_8
nginx 0.7.8
*) Feature: the ngx_http_xslt_module.
*) Feature: the "$arg_..." variables.
*) Feature: Solaris directio support.
Thanks to Ivan Debnar.
*) Bugfix: now if FastCGI server sends a "Location" header line without
status line, then nginx uses 302 status code.
Thanks to Maxim Dounin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 04 Aug 2008 00:00:00 +0400 |
parents | 1172e6d6f40f |
children | 05981f639d21 |
comparison
equal
deleted
inserted
replaced
391:4ec606a899d3 | 392:34fb3a573548 |
---|---|
630 { | 630 { |
631 ngx_http_sub_loc_conf_t *slcf = conf; | 631 ngx_http_sub_loc_conf_t *slcf = conf; |
632 | 632 |
633 ngx_str_t *value; | 633 ngx_str_t *value; |
634 ngx_int_t n; | 634 ngx_int_t n; |
635 ngx_uint_t i; | |
636 ngx_http_script_compile_t sc; | 635 ngx_http_script_compile_t sc; |
637 | 636 |
638 if (slcf->match.len) { | 637 if (slcf->match.len) { |
639 return "is duplicate"; | 638 return "is duplicate"; |
640 } | 639 } |
641 | 640 |
642 value = cf->args->elts; | 641 value = cf->args->elts; |
643 | 642 |
643 ngx_strlow(value[1].data, value[1].data, value[1].len); | |
644 | |
644 slcf->match = value[1]; | 645 slcf->match = value[1]; |
645 | |
646 for (i = 0; i < value[1].len; i++) { | |
647 value[1].data[i] = ngx_tolower(value[1].data[i]); | |
648 } | |
649 | 646 |
650 n = ngx_http_script_variables_count(&value[2]); | 647 n = ngx_http_script_variables_count(&value[2]); |
651 | 648 |
652 if (n == 0) { | 649 if (n == 0) { |
653 slcf->sub = value[2]; | 650 slcf->sub = value[2]; |