diff options
author | Allan Saddi <allan@saddi.com> | 2007-01-10 18:19:00 +0000 |
---|---|---|
committer | Allan Saddi <allan@saddi.com> | 2007-01-10 18:19:00 +0000 |
commit | b0783c1358f71f2c77e20e9393b932184781db0e (patch) | |
tree | c9592cd914ac5c6f05b388c2ac37f899c59f4066 /flup/middleware/gzip.py | |
parent | 97a38c2514a1690a190d57019497d12ce000786d (diff) | |
download | flup-b0783c1358f71f2c77e20e9393b932184781db0e.tar.gz |
Support gzip compression of XHTML pages using the
correct MIME type.
Diffstat (limited to 'flup/middleware/gzip.py')
-rw-r--r-- | flup/middleware/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |