Changes between Version 11 and Version 12 of StripWhitespaceMiddleware


Ignore:
Timestamp:
Oct 26, 2016, 10:27:58 AM (8 years ago)
Author:
matsaman
Comment:

fix last

Legend:

Unmodified
Added
Removed
Modified
  • StripWhitespaceMiddleware

    v11 v12  
    3232    def process_response(self, request, response):
    3333        if "text" in response['Content-Type']:
    34         # Uncomment the next line to avoid failure on cached / HTTP 304 NOT MODIFIED responses without Content-Type
     34        #Replace preceding 'if' with following commented 'if' to avoid failure on cached / HTTP 304 NOT MODIFIED responses without Content-Type
    3535        #if response.status_code == 200 and "text" in response['Content-Type']:
    3636            if hasattr(self, 'whitespace_lead'):
Back to Top