Mercurial > hg > nginx
diff src/http/modules/ngx_http_charset_filter.c @ 396:6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 18 Jul 2004 19:11:20 +0000 |
parents | 537de4dca8ca |
children | da8c5707af39 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_charset_filter.c +++ b/src/http/modules/ngx_http_charset_filter.c @@ -363,7 +363,6 @@ static char *ngx_http_set_charset_slot(n ngx_int_t *cp; ngx_str_t *value; ngx_http_charset_t *charset; - ngx_http_conf_ctx_t *ctx; ngx_http_charset_main_conf_t *mcf; cp = (ngx_int_t *) (p + cmd->offset); @@ -372,8 +371,9 @@ static char *ngx_http_set_charset_slot(n return "is duplicate"; } - ctx = cf->ctx; - mcf = ctx->main_conf[ngx_http_charset_filter_module.ctx_index]; + mcf = ngx_http_conf_get_module_main_conf(cf, + ngx_http_charset_filter_module); + value = cf->args->elts; *cp = ngx_http_add_charset(&mcf->charsets, &value[1]);