Gzip, gunzip: flush pending data when incoming chain is NULL.

This commit is contained in:
Yichun Zhang 2013-10-28 15:01:36 -07:00
parent 0eee3b0bc5
commit 3d3fa2adc6
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ ngx_http_gunzip_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
}
}
if (ctx->nomem) {
if (ctx->nomem || in == NULL) {
/* flush busy buffers */

View File

@ -372,7 +372,7 @@ ngx_http_gzip_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED;
}
if (ctx->nomem) {
if (ctx->nomem || in == NULL) {
/* flush busy buffers */