comparison src/http/modules/ngx_http_gzip_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 84155a389bcc
children e491b26fa5a1
comparison
equal deleted inserted replaced
5431:91bd62a9627e 5432:c52a761a2029
370 } 370 }
371 371
372 r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED; 372 r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED;
373 } 373 }
374 374
375 if (ctx->nomem) { 375 if (ctx->nomem || in == NULL) {
376 376
377 /* flush busy buffers */ 377 /* flush busy buffers */
378 378
379 if (ngx_http_next_body_filter(r, NULL) == NGX_ERROR) { 379 if (ngx_http_next_body_filter(r, NULL) == NGX_ERROR) {
380 goto failed; 380 goto failed;