Ticket #10762: gzip.patch

File gzip.patch, 536 bytes (added by rwagner@…, 16 years ago)
  • gzip.py

     
    1313    """
    1414    def process_response(self, request, response):
    1515        # It's not worth compressing non-OK or really short responses.
    16         if response.status_code != 200 or len(response.content) < 200:
     16        if response.status_code not in (200, 201) or len(response.content) < 200:
    1717            return response
    1818
    1919        patch_vary_headers(response, ('Accept-Encoding',))
Back to Top