]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
application/json was missing from GZIP CONTENT_TYPES 344/head
authorArtemi Krymski <akrymski@gmail.com>
Sat, 27 Aug 2011 15:02:00 +0000 (16:02 +0100)
committerArtemi Krymski <akrymski@gmail.com>
Sat, 27 Aug 2011 15:02:00 +0000 (16:02 +0100)
tornado/web.py

index 9e8c0d76d5cfdbe125d50f07bbfb4c647a5a61bf..40d1c0e340e8884e92bcf9aa072bc6c3f9ef0bb8 100644 (file)
@@ -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