Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 94

Show
Ignore:
Timestamp:
12/29/04 06:50:28
Author:
cribeiro
Message:

Modified the constructor of the zlib object with code borrowed from the standard gzip module. Some options were set to the wrong value.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ticket-59/cherrypy/lib/filter/gzipfilter.py

    r92 r94  
    6262        crc = zlib.crc32("") 
    6363        size = 0 
    64         zobj = zlib.compressobj(self.compresslevel
     64        zobj = zlib.compressobj(self.compresslevel, zlib.DEFLATED, -zlib.MAX_WBITS, zlib.DEF_MEM_LEVEL, 0
    6565        for line in body: 
    6666            size += len(line) 
     
    6969        yield zobj.flush() 
    7070        yield self.write_gzip_trailer(crc, size) 
    71  

Hosted by WebFaction

Log in as guest/cpguest to create tickets