Ticket #10762: gzip.patch
File gzip.patch, 536 bytes (added by , 16 years ago) |
---|
-
gzip.py
13 13 """ 14 14 def process_response(self, request, response): 15 15 # It's not worth compressing non-OK or really short responses. 16 if response.status_code != 200or len(response.content) < 200:16 if response.status_code not in (200, 201) or len(response.content) < 200: 17 17 return response 18 18 19 19 patch_vary_headers(response, ('Accept-Encoding',))