Changeset 2bbdb3


Ignore:
Timestamp:
02/03/08 15:01:40 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master-v0.7, gunzip, master-v0.6, memcached_gzip, upstream_count_limit
Children:
ef28d8, 56389f
Parents:
30e8c6
git-author:
Tomash Brechko <tomash.brechko@…> (02/03/08 15:01:40)
git-committer:
Tomash Brechko <tomash.brechko@…> (02/03/08 15:01:40)
Message:

For decompression use max wbits and memlevel.

File:
1 edited

Legend:

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

    r30e8c6 r2bbdb3  
    319319 
    320320    if (ctx->preallocated == NULL) { 
    321         wbits = conf->wbits; 
     321        wbits = (!r->gunzip ? conf->wbits : 15); 
    322322        memlevel = conf->memlevel; 
    323323 
    324         if (ctx->length > 0) { 
     324        if (!r->gunzip && ctx->length > 0) { 
    325325 
    326326            /* the actual zlib window size is smaller by 262 bytes */ 
Note: See TracChangeset for help on using the changeset viewer.