From 727299d9a6832475bb6360d081dafcebe0c945af Mon Sep 17 00:00:00 2001 From: Artemi Krymski Date: Sat, 27 Aug 2011 16:02:00 +0100 Subject: [PATCH] application/json was missing from GZIP CONTENT_TYPES --- tornado/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2