From 02f992db0138036ea48ce7769ab60151c5665873 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 3 Jun 2015 20:29:30 +0530 Subject: [PATCH] ... --- src/calibre/srv/http_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/http_response.py b/src/calibre/srv/http_response.py index 3e3d23a82e..488bc05796 100644 --- a/src/calibre/srv/http_response.py +++ b/src/calibre/srv/http_response.py @@ -498,7 +498,7 @@ class HTTPConnection(HTTPRequest): output = GeneratedOutput(output) ct = outheaders.get('Content-Type', '').partition(';')[0] compressible = (not ct or ct.startswith('text/') or ct.startswith('image/svg') or - ct in {'application/json', 'application/javascript'}) + ct in {'application/json', 'application/javascript', 'application/xml'}) compressible = (compressible and request.status_code == httplib.OK and (opts.compress_min_size > -1 and output.content_length >= opts.compress_min_size) and acceptable_encoding(request.inheaders.get('Accept-Encoding', '')) and not is_http1)