Ignore:
Timestamp:
04/13/08 13:19:27 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master-v0.7, gunzip, master-v0.6, memcached_gzip, upstream_count_limit
Children:
56389f
Parents:
88f48a
git-author:
Tomash Brechko <tomash.brechko@…> (04/13/08 13:19:27)
git-committer:
Tomash Brechko <tomash.brechko@…> (04/13/08 13:19:27)
Message:

Fix bug with missing last zero sized chunk on gunzip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/src/http/modules/ngx_http_gzip_filter_module.c

    r95d817 r21b759  
    629629                 * On decompression we could already output everything 
    630630                 * under (ctx->flush == Z_SYNC_FLUSH), so we test here 
    631                  * that the buffer is not empty. 
     631                 * that the buffer is not empty, or Transfer-Encoding: 
     632                 * is chunked.  In the latter case we output empty 
     633                 * buffer to get last zero length chunk. 
    632634                 */ 
    633                 if (!r->gunzip || ctx->out_buf->last > ctx->out_buf->pos) { 
     635                if (!r->gunzip || ctx->out_buf->last > ctx->out_buf->pos 
     636                    || r->chunked) { 
    634637                    cl->buf = ctx->out_buf; 
    635638                    cl->next = NULL; 
Note: See TracChangeset for help on using the changeset viewer.