Mercurial > hg > nginx
diff src/http/ngx_http_output_filter.c @ 45:f1ee46c036a4
nginx-0.0.1-2003-01-10-09:09:20 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 10 Jan 2003 06:09:20 +0000 |
parents | 0e81ac0bb3e2 |
children | d81326c3b21b |
line wrap: on
line diff
--- a/src/http/ngx_http_output_filter.c +++ b/src/http/ngx_http_output_filter.c @@ -68,11 +68,10 @@ int ngx_http_output_filter(ngx_http_requ ctx = (ngx_http_output_filter_ctx_t *) ngx_http_get_module_ctx(r->main ? r->main : r, - ngx_http_output_filter_module_ctx); + ngx_http_output_filter_module); if (ctx == NULL) { - ngx_http_create_ctx(r, ctx, - ngx_http_output_filter_module_ctx, + ngx_http_create_ctx(r, ctx, ngx_http_output_filter_module, sizeof(ngx_http_output_filter_ctx_t)); } @@ -183,9 +182,9 @@ int ngx_http_output_filter(ngx_http_requ if (hunk->type & NGX_HUNK_LAST) { conf = (ngx_http_output_filter_conf_t *) - ngx_http_get_module_loc_conf( - r->main ? r->main : r, - ngx_http_output_filter_module_ctx); + ngx_http_get_module_loc_conf( + r->main ? r->main : r, + ngx_http_output_filter_module); size = hunk->last.mem - hunk->pos.mem; if (size > conf->hunk_size) {