comparison ngx_http_gunzip_filter_module.c @ 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 5b45458fb4ac
children
comparison
equal deleted inserted replaced
15:d1b72979e4f1 16:50ec0697da32
216 goto failed; 216 goto failed;
217 } 217 }
218 218
219 cl = NULL; 219 cl = NULL;
220 220
221 #if (nginx_version >= 1001004)
222 ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &cl,
223 (ngx_buf_tag_t) &ngx_http_gunzip_filter_module);
224 #else
221 ngx_chain_update_chains(&ctx->free, &ctx->busy, &cl, 225 ngx_chain_update_chains(&ctx->free, &ctx->busy, &cl,
222 (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); 226 (ngx_buf_tag_t) &ngx_http_gunzip_filter_module);
227 #endif
223 ctx->nomem = 0; 228 ctx->nomem = 0;
224 } 229 }
225 230
226 for ( ;; ) { 231 for ( ;; ) {
227 232
275 280
276 if (rc == NGX_ERROR) { 281 if (rc == NGX_ERROR) {
277 goto failed; 282 goto failed;
278 } 283 }
279 284
285 #if (nginx_version >= 1001004)
286 ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &ctx->out,
287 (ngx_buf_tag_t) &ngx_http_gunzip_filter_module);
288 #else
280 ngx_chain_update_chains(&ctx->free, &ctx->busy, &ctx->out, 289 ngx_chain_update_chains(&ctx->free, &ctx->busy, &ctx->out,
281 (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); 290 (ngx_buf_tag_t) &ngx_http_gunzip_filter_module);
291 #endif
282 ctx->last_out = &ctx->out; 292 ctx->last_out = &ctx->out;
283 293
284 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 294 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
285 "gunzip out: %p", ctx->out); 295 "gunzip out: %p", ctx->out);
286 296