mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 13:43:28 -06:00
Gzip, gunzip: flush pending data when incoming chain is NULL.
This commit is contained in:
parent
0eee3b0bc5
commit
3d3fa2adc6
@ -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…
Reference in New Issue
Block a user