diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | flup/middleware/gzip.py | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2007-01-10 Allan Saddi <allan@saddi.com> + + * Support gzip compression of XHTML pages using the + correct MIME type. + 2006-12-29 Allan Saddi <allan@saddi.com> * Deprecate WSGI_SCRIPT_NAME and scriptName in scgi_base. diff --git a/flup/middleware/gzip.py b/flup/middleware/gzip.py index abfc1d9..59a800d 100644 --- a/flup/middleware/gzip.py +++ b/flup/middleware/gzip.py @@ -220,7 +220,7 @@ class GzipMiddleware(object): producing the most compression. The default is 9. """ if mime_types is None: - mime_types = ['text/.*'] + mime_types = ['text/', r'''application/(?:.+\+)?xml$'''] self._application = application self._mime_types = [re.compile(m) for m in mime_types] |