Ticket #2449: gzip.2.diff
File gzip.2.diff, 533 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 'javascript' in response.headers['Content-Type'].lower(): 16 16 return response 17 17 18 18 ae = request.META.get('HTTP_ACCEPT_ENCODING', '')