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

Changeset 982

Show
Ignore:
Timestamp:
02/28/06 08:34:47
Author:
rdelon
Message:

Fixed #499 (bug in gzipfilter)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/filters/gzipfilter.py

    r946 r982  
    4343         
    4444        ct = response.headers.get('Content-Type').split(';')[0] 
    45         ct = ct in cherrypy.config.get('gzip_filter.mime_types', ['text/html']) 
     45        ct = ct in cherrypy.config.get('gzip_filter.mime_types', ['text/html', 'text/plain']) 
    4646        for coding in acceptable: 
    4747            if coding.value == 'identity' and coding.qvalue != 0: 
     
    5252                if ct: 
    5353                    zipit() 
    54                     return 
     54                return 
    5555        cherrypy.HTTPError(406, "identity, gzip").set_response() 
    5656     

Hosted by WebFaction

Log in as guest/cpguest to create tickets