Ticket #2449: gzip.diff
File gzip.diff, 532 bytes (added by , 18 years ago) |
---|
-
gzip.py
12 12 """ 13 13 def process_response(self, request, response): 14 14 patch_vary_headers(response, ('Accept-Encoding',)) 15 if response.has_header('Content-Encoding') :15 if response.has_header('Content-Encoding') or response.headers['Content-Type'].endswith('javascript'): 16 16 return response 17 17 18 18 ae = request.META.get('HTTP_ACCEPT_ENCODING', '')