mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
143d78ea47
commit
02f992db01
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user