From: Artemi Krymski Date: Sat, 27 Aug 2011 15:02:00 +0000 (+0100) Subject: application/json was missing from GZIP CONTENT_TYPES X-Git-Tag: v2.1.0~44^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=727299d9a6832475bb6360d081dafcebe0c945af;p=thirdparty%2Ftornado.git application/json was missing from GZIP CONTENT_TYPES --- diff --git a/tornado/web.py b/tornado/web.py index 9e8c0d76d..40d1c0e34 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1620,7 +1620,7 @@ class GZipContentEncoding(OutputTransform): See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11 """ CONTENT_TYPES = set([ - "text/plain", "text/html", "text/css", "text/xml", + "text/plain", "text/html", "text/css", "text/xml", "application/javascript", "application/x-javascript", "application/xml", "application/atom+xml", "text/javascript", "application/json", "application/xhtml+xml"]) MIN_LENGTH = 5