comparison src/http/modules/ngx_http_gunzip_filter_module.c @ 5432:c52a761a2029

Gzip, gunzip: flush pending data when incoming chain is NULL.
author Yichun Zhang <agentzh@gmail.com>
date Mon, 28 Oct 2013 15:01:36 -0700
parents 41bf14321133
children 2bb2571d6e34
comparison
equal deleted inserted replaced
5431:91bd62a9627e 5432:c52a761a2029
197 if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) { 197 if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) {
198 goto failed; 198 goto failed;
199 } 199 }
200 } 200 }
201 201
202 if (ctx->nomem) { 202 if (ctx->nomem || in == NULL) {
203 203
204 /* flush busy buffers */ 204 /* flush busy buffers */
205 205
206 if (ngx_http_next_body_filter(r, NULL) == NGX_ERROR) { 206 if (ngx_http_next_body_filter(r, NULL) == NGX_ERROR) {
207 goto failed; 207 goto failed;