Commits

Anonymous committed 3f09693

Fixed #499 (bug in gzipfilter)

Comments (0)

Files changed (1)

cherrypy/filters/gzipfilter.py

             return
         
         ct = response.headers.get('Content-Type').split(';')[0]
-        ct = ct in cherrypy.config.get('gzip_filter.mime_types', ['text/html'])
+        ct = ct in cherrypy.config.get('gzip_filter.mime_types', ['text/html', 'text/plain'])
         for coding in acceptable:
             if coding.value == 'identity' and coding.qvalue != 0:
                 return
                     return
                 if ct:
                     zipit()
-                    return
+                return
         cherrypy.HTTPError(406, "identity, gzip").set_response()
     
     def write_gzip_header(self):