mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Gzip, gunzip: flush pending data when incoming chain is NULL.
This commit is contained in:
parent
0eee3b0bc5
commit
3d3fa2adc6
2 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue