Mercurial > hg > ngx_http_gunzip_filter_module
changeset 16:50ec0697da32
Catch up with nginx 1.1.4 API changes.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 20 Sep 2011 15:04:27 +0400 |
parents | d1b72979e4f1 |
children | 93115aab4c92 |
files | ngx_http_gunzip_filter_module.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ngx_http_gunzip_filter_module.c +++ b/ngx_http_gunzip_filter_module.c @@ -218,8 +218,13 @@ ngx_http_gunzip_body_filter(ngx_http_req cl = NULL; +#if (nginx_version >= 1001004) + ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &cl, + (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#else ngx_chain_update_chains(&ctx->free, &ctx->busy, &cl, (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#endif ctx->nomem = 0; } @@ -277,8 +282,13 @@ ngx_http_gunzip_body_filter(ngx_http_req goto failed; } +#if (nginx_version >= 1001004) + ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &ctx->out, + (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#else ngx_chain_update_chains(&ctx->free, &ctx->busy, &ctx->out, (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#endif ctx->last_out = &ctx->out; ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,