Ticket #10762: 10762.patch
File 10762.patch, 646 bytes (added by , 14 years ago) |
---|
-
django/middleware/gzip.py
12 12 on the Accept-Encoding header. 13 13 """ 14 14 def process_response(self, request, response): 15 # It's not worth compressing non-OK orreally short responses.16 if response.status_code != 200 orlen(response.content) < 200:15 # It's not worth compressing really short responses. 16 if len(response.content) < 200: 17 17 return response 18 18 19 19 patch_vary_headers(response, ('Accept-Encoding',))