comparison src/http/modules/ngx_http_rewrite_module.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 ff906029dd40
children 94e16de3c33f
comparison
equal deleted inserted replaced
299:7d0d14dc5fd7 300:cba14c1e2a4b
933 index = ngx_http_get_variable_index(cf, &value[1]); 933 index = ngx_http_get_variable_index(cf, &value[1]);
934 if (index == NGX_ERROR) { 934 if (index == NGX_ERROR) {
935 return NGX_CONF_ERROR; 935 return NGX_CONF_ERROR;
936 } 936 }
937 937
938 if (v->get_handler == NULL) { 938 if (v->get_handler == NULL
939 && ngx_strncasecmp(value[1].data, (u_char *) "http_", 5) != 0
940 && ngx_strncasecmp(value[1].data, (u_char *) "sent_http_", 10) != 0
941 && ngx_strncasecmp(value[1].data, (u_char *) "upstream_http_", 14) != 0)
942 {
939 v->get_handler = ngx_http_rewrite_var; 943 v->get_handler = ngx_http_rewrite_var;
940 v->data = index; 944 v->data = index;
941 } 945 }
942 946
943 if (ngx_http_rewrite_value(cf, lcf, &value[2]) != NGX_CONF_OK) { 947 if (ngx_http_rewrite_value(cf, lcf, &value[2]) != NGX_CONF_OK) {